File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed
packages/clerk-js/src/core Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @clerk/clerk-js ' : patch
3
+ ---
4
+
5
+ Remove cache revalidation hooks from pending session handling. This fixes unmounting issues from ` SignIn ` and ` SignUp ` AIOs during after-auth flows.
Original file line number Diff line number Diff line change @@ -1225,17 +1225,16 @@ export class Clerk implements ClerkInterface {
1225
1225
}
1226
1226
}
1227
1227
1228
- /**
1229
- * Hint to each framework, that the user will be signed out when `{session: null}` is provided.
1230
- */
1231
- await onBeforeSetActive ( newSession === null ? 'sign-out' : undefined ) ;
1232
-
1233
1228
if ( newSession ?. status === 'pending' ) {
1234
1229
await this . #handlePendingSession( newSession ) ;
1235
- await onAfterSetActive ( ) ;
1236
1230
return ;
1237
1231
}
1238
1232
1233
+ /**
1234
+ * Hint to each framework, that the user will be signed out when `{session: null}` is provided.
1235
+ */
1236
+ await onBeforeSetActive ( newSession === null ? 'sign-out' : undefined ) ;
1237
+
1239
1238
//1. setLastActiveSession to passed user session (add a param).
1240
1239
// Note that this will also update the session's active organization
1241
1240
// id.
You can’t perform that action at this time.
0 commit comments