Uh oh!
There was an error while loading. Please reload this page.
chore(repo): Replace Clerk.user with Clerk.isSignedIn on integration tests - #5186
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
39cfc4e to
3ea079eCompare3ea079e to
546e4a5CompareClerk.user with Clerk.isSignedIn on integration tests Clerk.user with Clerk.isSignedIn on integration tests 546e4a5 to
8b46b36Compare| const controlStateEl = document.querySelector('#user-state'); | ||
| if (Clerk.user) { | ||
| if (Clerk.isSignedIn) { |
There was a problem hiding this comment.
For applications that don't have pending sessions, checking Clerk.user will still be the same as Clerk.isSignedIn, correct ?
There was a problem hiding this comment.
Correct! We'll start replacing Clerk.user for custom flow branches of logic to keep it scalable for both active/pending - the following will be applied to our docs especially
b503280 to
bb1b736CompareLauraBeatris
commented
Feb 18, 2025
Actually closing this one, realized that it's not super necessary as right now It'd just be required to replace it we were explicitly checking for |
Description
Blocked by #5136 - waiting to be deployed (currently stacked branch)
Instead of relying on the
Clerk.userto determine whether to mount elements for a custom sign-in flow, use the newestClerk.isSignedInChecklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change