Function useAsyncV

  • A custom hook for managing asynchronous data in an external store with synchronous state.

    Parameters

    • selector: string

      The selector for the asynchronous data.

    • config: {
          initialState?: { data?: null | undefined; loading?: boolean | undefined; error?: boolean | undefined; };
      } = useAsyncVDefaultConfig

      Optional configuration options. useAsyncVDefaultConfig

      • Optional initialState?: { data?: null | undefined; loading?: boolean | undefined; error?: boolean | undefined; }

    Returns {
        data: null;
        error: boolean;
        loading: boolean;
    } & object

Generated using TypeDoc