Minor Changes
-
Update
useSessionto handle pending sessions as signed-out by default, with opt-out viauseSession({ treatPendingAsSignedOut: false })or<ClerkProvider treatPendingAsSignedOut={false} />(#5525) by @LauraBeatris -
Update
useAuthto handle pending sessions as signed-out by default, with opt-out viauseAuth({ treatPendingAsSignedOut: false })or<ClerkProvider treatPendingAsSignedOut={false} />(#5507) by @LauraBeatris
Patch Changes
-
Fixes an issue where a race condition was caused by triggering navigations during a call to
setActive. (#5515) by @dstaley -
Introduce
clerk.__internal_openCheckout()andclerk.__internal_closeCheckout()methods and remove<Checkout />from within the<PricingTable />component. (#5481) by @alexcarpenter -
Introduce
treatPendingAsSignedOutprop to client control components (#5512) by @LauraBeatris// Children node only mounts when session is active // Example: Organization selection must be completed if enforced <SignedIn> <p>You have selected an organization!</p> </SignedIn>
// Children node mounts for both active and pending session <SignedIn treatPendingAsSignedOut={false}> <p>You might not have an organization selected</p> </SignedIn>
// Children node only mounts when session is active // Example: Organization selection must be completed if enforced <Protect> <p>You have selected an organization!</p> </Protect>
// Children node mounts for both active and pending session <Protect treatPendingAsSignedOut={false}> <p>You might not have an organization selected</p> </Protect>
-
Updated dependencies [
e1ec52b,bebb6d8,d0d5203,6112420,9b25e31]:- @clerk/types@4.51.0
- @clerk/shared@3.4.0