import { Canvas, Meta } from '@storybook/blocks' import * as useAsyncStories from './src/useAsync.stories' import * as useAsyncFnFactoryStories from './src/useAsyncFnFactory.stories'
A hook to load data/do asynchronous operations.
Will call function once component mounted, once deps changed:
- will re-call function;
- will re-generate
reRun
function.
A hook to load data/do asynchronous operations.
Will not call function automatically, once deps changed:
- will not re-call function;
- will call
fnFactory
to try re-generate async fn.