Skip to content

Commit 249d366

Browse files
committed
Run onAfterSetActive if the new session is active
1 parent 22faa50 commit 249d366

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

packages/clerk-js/src/core/clerk.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,7 @@ export class Clerk implements ClerkInterface {
13611361
this.#emit();
13621362

13631363
// Do not revalidate server cache for pending sessions to avoid unmount of `SignIn/SignUp` AIOs when navigating to task
1364-
if (!sessionIsPending) {
1364+
if (!sessionIsPending || newSession?.status === 'active') {
13651365
await onAfterSetActive();
13661366
}
13671367
} finally {

packages/types/src/clerk.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -961,7 +961,6 @@ type ClerkOptionsNavigation =
961961
};
962962

963963
export type ClerkOptions = ClerkOptionsNavigation &
964-
ClerkOptionsNavigation &
965964
SignInForceRedirectUrl &
966965
SignInFallbackRedirectUrl &
967966
SignUpForceRedirectUrl &

0 commit comments

Comments
 (0)