• Returns a tuple where the first element is a Loadable and the second element is a setter function to update the given state. Subscribes component to updates of the given state.

    Type Parameters

    • T

    Parameters

    Returns [Loadable<T>, SetterOrUpdater<T>]