- Preparing search index...
- The search index is not available
use-sync-v
- useAsyncV(selector, config?): {
data: null;
error: boolean;
loading: boolean;
} & object
-
Parameters
-
selector: string
-
config: {
initialState?: { data?: null | undefined; loading?: boolean | undefined; error?: boolean | undefined; };
} = useAsyncVDefaultConfig
-
Optional
initialState?: { data?: null | undefined; loading?: boolean | undefined; error?: boolean | undefined; }
Returns {
data: null;
error: boolean;
loading: boolean;
} & object
A custom hook for managing asynchronous data in an external store with synchronous state.