Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-tanstack-redirect-navigation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@clerk/tanstack-react-start": patch
---

Fix incorrect redirects when navigating away from sign-in/sign-up pages. The navigation promise is now resolved only after the location actually changes, preventing Clerk from issuing faulty redirects to non-existent pages.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export const useAwaitableNavigate = () => {
return new Promise(res => {
startTransition(() => {
resolveFunctionsRef.current.push(res);
res(navigate(options));
navigate(options);
});
});
};
Expand Down