- Preparing search index...
- The search index is not available
use-sync-v
- useQueryV(selector, asyncFn, config?): {
data: null;
error: boolean;
loading: boolean;
} & object
-
Parameters
-
selector: string
-
asyncFn: (() => Promise<unknown>)
-
- (): Promise<unknown>
-
Returns Promise<unknown>
-
config: {
cacheData?: boolean;
updateAsyncV?: { deleteExistingData?: boolean | undefined; };
useAsyncV?: { initialState?: { loading?: boolean | undefined; data?: null | undefined; error?: boolean | undefined; } | undefined; };
} = useQueryVDefaultConfig
-
Optional
cacheData?: boolean
-
Optional
updateAsyncV?: { deleteExistingData?: boolean | undefined; }
-
Optional
useAsyncV?: { initialState?: { loading?: boolean | undefined; data?: null | undefined; error?: boolean | undefined; } | undefined; }
Returns {
data: null;
error: boolean;
loading: boolean;
} & object
Hook that provides a reactive way to fetch data asynchronously and update the synchronous state of the application.