Resolves the users for a specific resource without registering a lasting subscriber.
This function fetches the users for a given resource and returns a promise that resolves with
the users result. Unlike getUsersState, which registers subscribers to keep the data live and
performs automatic cleanup, resolveUsers does not track subscribers. This makes it ideal for
use with React Suspense, where the returned promise is thrown to delay rendering until the users
result becomes available. Once the promise resolves, it is expected that a real subscriber will
be added via getUsersState to manage ongoing updates.
Additionally, an optional AbortSignal can be provided to cancel the request and immediately
clear the associated state if there are no active subscribers.
Resolves the users for a specific resource without registering a lasting subscriber.
This function fetches the users for a given resource and returns a promise that resolves with the users result. Unlike
getUsersState
, which registers subscribers to keep the data live and performs automatic cleanup,resolveUsers
does not track subscribers. This makes it ideal for use with React Suspense, where the returned promise is thrown to delay rendering until the users result becomes available. Once the promise resolves, it is expected that a real subscriber will be added viagetUsersState
to manage ongoing updates.Additionally, an optional AbortSignal can be provided to cancel the request and immediately clear the associated state if there are no active subscribers.