File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change 5
5
---
6
6
7
7
Introduce ` treatPendingAsSignedOut ` prop to client control components
8
+
9
+ ``` tsx
10
+ // Children node only mounts when session is active
11
+ // Example: Organization selection must be completed if enforced
12
+ <SignedIn >
13
+ <p >You have selected an organization!</p >
14
+ </SignedIn >
15
+ ```
16
+ ``` tsx
17
+ // Children node mounts for both active and pending session
18
+ <SignedIn treatPendingAsSignedOut = { false } >
19
+ <p >You might not have an organization selected</p >
20
+ </SignedIn >
21
+ ```
22
+
23
+ ``` tsx
24
+ // Children node only mounts when session is active
25
+ // Example: Organization selection must be completed if enforced
26
+ <Protect >
27
+ <p >You have selected an organization!</p >
28
+ </Protect >
29
+ ```
30
+ ``` tsx
31
+ // Children node mounts for both active and pending session
32
+ <Protect treatPendingAsSignedOut = { false } >
33
+ <p >You might not have an organization selected</p >
34
+ </Protect >
35
+ ```
You can’t perform that action at this time.
0 commit comments