Clerk auth
I seem to have circular dependency issue with Clerk and Tanstack router. Clerk depends on router and I also need to pass auth context to the router. What is the solution to this problem?
3 Replies
plain-purple•16mo ago
why does clerk depend on router?
ambitious-aquaOP•16mo ago
Here is their example with react router:
I guess it is an option to pass on the client side routing in clerk, but wonder if there is a more elegant solution
Or I can do all data loading only inside components, though I guess it will be a greater hit for UX
inland-turquoise•16mo ago
what do you mean by " pass on the client side routing"?