Skip to content

Commit 7dd33d6

Browse files
authored
Merge branch 'main' into rob/oauth-consent-ga
2 parents bf70ca2 + 61e0a78 commit 7dd33d6

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export type UseOrganizationParams = {
6969
export type UseOrganizationReturn<T extends UseOrganizationParams> =
7070
| {
7171
/**
72-
* A boolean that indicates whether Clerk has completed initialization. Initially `false`, becomes `true` once Clerk loads.
72+
* A boolean that indicates whether Clerk has loaded the current authentication state. Initially `false`, becomes `true` once Clerk loads, and can revert to `false` while auth state is updating (for example, when switching organizations via [`setActive()`](https://clerk.com/docs/reference/objects/clerk#set-active)).
7373
*/
7474
isLoaded: false;
7575
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const undefinedPaginatedResource = {
7777
export type UseOrganizationListReturn<T extends UseOrganizationListParams> =
7878
| {
7979
/**
80-
* A boolean that indicates whether Clerk has completed initialization and there is an authenticated user. Initially `false`, becomes `true` once Clerk loads with a user.
80+
* A boolean that indicates whether Clerk has loaded the current authentication state and there is an authenticated user. Initially `false`, becomes `true` once Clerk loads with a user, and can revert to `false` while auth state is updating (for example, when switching organizations via [`setActive()`](https://clerk.com/docs/reference/objects/clerk#set-active)).
8181
*/
8282
isLoaded: false;
8383
/**

packages/shared/src/types/hooks.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ type CheckAuthorizationSignedOut = CheckAuthorizationWithoutOrgOrUser;
2626
export type UseAuthReturn =
2727
| {
2828
/**
29-
* A boolean that indicates whether Clerk has completed initialization. Initially `false`, becomes `true` once Clerk loads.
29+
* A boolean that indicates whether Clerk has loaded the current authentication state. Initially `false`, becomes `true` once Clerk loads, and can revert to `false` while auth state is updating (for example, when switching organizations via [`setActive()`](https://clerk.com/docs/reference/objects/clerk#set-active)).
3030
*/
3131
isLoaded: false;
3232
/**
@@ -171,7 +171,7 @@ export type UseSignUpReturn =
171171
export type UseSessionReturn =
172172
| {
173173
/**
174-
* A boolean that indicates whether Clerk has completed initialization. Initially `false`, becomes `true` once Clerk loads.
174+
* A boolean that indicates whether Clerk has loaded the current authentication state. Initially `false`, becomes `true` once Clerk loads, and can revert to `false` while auth state is updating (for example, when switching organizations via [`setActive()`](https://clerk.com/docs/reference/objects/clerk#set-active)).
175175
*/
176176
isLoaded: false;
177177
/**
@@ -224,7 +224,7 @@ export type UseSessionListReturn =
224224
export type UseUserReturn =
225225
| {
226226
/**
227-
* A boolean that indicates whether Clerk has completed initialization. Initially `false`, becomes `true` once Clerk loads.
227+
* A boolean that indicates whether Clerk has loaded the current authentication state. Initially `false`, becomes `true` once Clerk loads, and can revert to `false` while auth state is updating (for example, when switching organizations via [`setActive()`](https://clerk.com/docs/reference/objects/clerk#set-active)).
228228
*/
229229
isLoaded: false;
230230
/**

0 commit comments

Comments
 (0)