Sanity App SDK
    Preparing search index...

    Variable getUsersStateConst Beta

    getUsersState: BoundStoreAction<
        UsersStoreState,
        [options?: GetUsersOptions],
        StateSource<
            | undefined
            | { data: SanityUser[]; hasMore: boolean; totalCount: number },
        >,
    > = ...

    Returns the state source for users associated with a specific resource.

    This function returns a state source that represents the current list of users for a given resource. Subscribing to the state source will instruct the SDK to fetch the users (if not already fetched) and will load more from this state source as well. When the last subscriber is removed, the users state is automatically cleaned up from the store after a delay.

    Note: This functionality is for advanced users who want to build their own framework integrations. Our SDK also provides a React integration for convenient usage.