File tree 1 file changed +26
-0
lines changed
1 file changed +26
-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 mount 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
+ // Children node mounts for both active and pending session
17
+ <SignedIn treatPendingAsSignedOut = { false } >
18
+ <p >You might have not have selected an organization</p >
19
+ </SignedIn >
20
+ ```
21
+
22
+ ``` tsx
23
+ // Children node only mount when session is active
24
+ // Example: Organization selection must be completed if enforced
25
+ <Protect >
26
+ <p >You have selected an organization!</p >
27
+ </Protect >
28
+
29
+ // Children node mounts for both active and pending session
30
+ <Protect treatPendingAsSignedOut = { false } >
31
+ <p >You might have not have selected an organization</p >
32
+ </Protect >
33
+ ```
You can’t perform that action at this time.
0 commit comments