-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ORG-83 userInvitations in useOrganizationList (#1520)
* feat(shared): Support infinite fetching for `userInvitations` from `useOrganizationList` * chore(clerk-js,shared,clerk-react): Deprecate OrganizationContext and introduce OrganizationProvider We needed to wrap <OrganizationContext.Provider/> with SWRConfig provider so that useSWR hooks can read from the correct context in tests. * chore(repo): Add changeset * test(clerk-js): Introduce tests for useCoreOrganizationList * chore(repo): Update lock file
- Loading branch information
1 parent
b42ee79
commit 4ea30e8
Showing
16 changed files
with
663 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
'@clerk/clerk-js': minor | ||
'@clerk/shared': minor | ||
'@clerk/clerk-react': minor | ||
'@clerk/types': minor | ||
--- | ||
|
||
Introduces userInvitations from `useOrganizationList` | ||
|
||
`userInvitations` is a paginated list of data. It can be used to create Paginated tables or Infinite lists. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/clerk-js/src/ui/contexts/CoreOrganizationContext.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import { OrganizationContext, useOrganization, useOrganizationList, useOrganizations } from '@clerk/shared'; | ||
import { OrganizationProvider, useOrganization, useOrganizationList, useOrganizations } from '@clerk/shared'; | ||
|
||
export const CoreOrganizationContext = OrganizationContext; | ||
export const CoreOrganizationProvider = OrganizationProvider; | ||
export const useCoreOrganization = useOrganization; | ||
export const useCoreOrganizationList = useOrganizationList; | ||
export const useCoreOrganizations = useOrganizations; |
Oops, something went wrong.