mirror of
https://github.com/misode/misode.github.io.git
synced 2026-04-26 16:35:39 +00:00
Update to esm, update deepslate (#244)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { Inputs } from 'preact/hooks'
|
||||
import { useEffect } from 'preact/hooks'
|
||||
import type { AsyncCancel, AsyncState } from './useAsyncFn'
|
||||
import { useAsyncFn } from './useAsyncFn'
|
||||
import type { AsyncCancel, AsyncState } from './index.js'
|
||||
import { useAsyncFn } from './index.js'
|
||||
|
||||
export function useAsync<R>(
|
||||
fn: () => Promise<R | typeof AsyncCancel>,
|
||||
|
||||
Reference in New Issue
Block a user