Skip to content

Commit 59f1559

Browse files
authored
fix(shared): Invalidate organization memberships query (#6530)
1 parent 7acbcb1 commit 59f1559

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/upset-sides-kneel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/shared': patch
3+
---
4+
5+
Invalidate organization memberships based on client user

packages/shared/src/react/hooks/useOrganizationList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -323,6 +323,7 @@ export function useOrganizationList<T extends UseOrganizationListParams>(params?
323323
{
324324
type: 'userMemberships',
325325
userId: user?.id,
326+
memberships: user?.organizationMemberships.length ?? 0,
326327
},
327328
);
328329

0 commit comments

Comments
 (0)