Skip to content

Commit 57e33bc

Browse files
committed
Add snippet to changeset
1 parent 815cde2 commit 57e33bc

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.changeset/red-ducks-hide.md

+26
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,29 @@
55
---
66

77
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+
```

0 commit comments

Comments
 (0)