Function updateAsyncV

  • A function that updates the data in the store asynchronously using the specified selector and async function.

    Async

    Parameters

    • selector: string

      The selector to use for accessing data in the store.

    • asyncFn: (() => Promise<unknown>) = ...

      The async function to call to update the data in the store.

        • (): Promise<unknown>
        • Returns Promise<unknown>

    • config: {
          deleteExistingData?: boolean;
      } = updateAsyncVDefaultConfig

      An optional object that specifies whether to delete existing data before updating. updateAsyncVDefaultConfig

      • Optional deleteExistingData?: boolean

    Returns Promise<void>

Generated using TypeDoc