Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(tanstack-start): Merge router context instead of updating #4345

Conversation

jeremy-clerk
Copy link
Contributor

@jeremy-clerk jeremy-clerk commented Oct 17, 2024

Description

This PR fixes bug where the initialisation of Clerk overwrites the context, by merging the original/existing context with the clerkInitialState.

Checklist

  • npm test runs as expected.
  • npm run build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Copy link

changeset-bot bot commented Oct 17, 2024

🦋 Changeset detected

Latest commit: 81f84d1

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clerk/tanstack-start Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@octoper octoper changed the title Jw/merge initial context fix(tanstack-start): Merge router context Oct 27, 2024
@octoper octoper force-pushed the jw/merge-initial-context branch from 9dce162 to c734a43 Compare October 27, 2024 20:58
@octoper octoper changed the title fix(tanstack-start): Merge router context fix(tanstack-start): Merge router context instead of updating Oct 27, 2024
@octoper octoper marked this pull request as ready for review October 27, 2024 21:06
@octoper octoper force-pushed the jw/merge-initial-context branch from 6c3268e to 3cb80bd Compare October 28, 2024 17:01
@phibr0
Copy link
Contributor

phibr0 commented Oct 29, 2024

Will this be merged before the next release? It's currently breaking all TanStack Start apps that use the router context during SSR.

@octoper octoper force-pushed the jw/merge-initial-context branch 5 times, most recently from 4f331c4 to 63dfb52 Compare October 29, 2024 15:50
@octoper
Copy link
Member

octoper commented Oct 29, 2024

Hey @phibr0 !

I'm working on this today and I will try to have it merged by the end of the day

@octoper octoper force-pushed the jw/merge-initial-context branch from 63dfb52 to 81f84d1 Compare October 29, 2024 19:09
@octoper octoper changed the base branch from main to vaggelis.fix/merge-initial-context October 29, 2024 19:46
@octoper octoper merged commit 9655f31 into clerk:vaggelis.fix/merge-initial-context Oct 29, 2024
8 of 21 checks passed
@octoper
Copy link
Member

octoper commented Oct 29, 2024

Work for this issue has been moved on this PR

octoper added a commit that referenced this pull request Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants