Helpful
    Preparing search index...

    Returns the loaded data.

    The data to retrieve.

    The fallback to return in the case that data has not yet been loaded.

    The type of data of the loaded state.

    This method returns data if it is loaded, or fallback if it is not.

    • Returns the loaded data.

      Type Parameters

      • T

        The type of data of the loaded state.

      Parameters

      Returns T | undefined

      This method returns data if it is loaded, or undefined if it is not.

    • Returns the loaded data.

      Type Parameters

      • T

        The type of data of the loaded state.

      Parameters

      • data: ZAsyncDataState<T>

        The data to retrieve.

      • fallback: T

        The fallback to return in the case that data has not yet been loaded.

      Returns T

      This method returns data if it is loaded, or fallback if it is not.