We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
onAfterSetActive
active
1 parent 45647ab commit 7428b30Copy full SHA for 7428b30
packages/clerk-js/src/core/clerk.ts
@@ -1361,7 +1361,7 @@ export class Clerk implements ClerkInterface {
1361
this.#emit();
1362
1363
// Do not revalidate server cache for pending sessions to avoid unmount of `SignIn/SignUp` AIOs when navigating to task
1364
- if (!sessionIsPending) {
+ if (!sessionIsPending || newSession?.status === 'active') {
1365
await onAfterSetActive();
1366
}
1367
} finally {
packages/types/src/clerk.ts
@@ -961,7 +961,6 @@ type ClerkOptionsNavigation =
961
};
962
963
export type ClerkOptions = ClerkOptionsNavigation &
964
- ClerkOptionsNavigation &
965
SignInForceRedirectUrl &
966
SignInFallbackRedirectUrl &
967
SignUpForceRedirectUrl &
0 commit comments