Skip to content

Commit

Permalink
merge iniitial context with clerkInitialState
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-clerk authored and octoper committed Oct 27, 2024
1 parent abeb659 commit 2ee481a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/tanstack-start/src/server/middlewareHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ export function createClerkHandler<TRouter extends AnyRouter>(

const clerkInitialState = getResponseClerkState(requestState, loadedOptions);

// Updating the TanStack router context with the Clerk context and loading the router
// Merging the TanStack router context with the Clerk context and loading the router
router.update({
context: clerkInitialState,
context: { ...clerkInitialState, ...router.options.context },
});

await router.load();
Expand Down

0 comments on commit 2ee481a

Please sign in to comment.