$organizationStore
The $organizationStore
store is used to retrieve attributes of the currently active organization.
How to use the $organizationStore
store
The following example demonstrates how to use the $organizationStore
store to access the Organization
object, which allows you to access the current active organization.
Paginating data
The following example demonstrates how to implement pagination for organization memberships. The memberships
state will be populated with the first page of the organization's memberships. When the "Previous page" or "Next page" button is clicked, the fetchMemberships
function will be called to fetch the previous or next page of memberships.
You can implement this pattern to any Clerk function that returns a ClerkPaginatedResponse
object.
Feedback
Last updated on