Skip to content
Discussion options

You must be logged in to vote

After some digging around I found something that works for me. The @tanstack/react-router-with-query package ended up being the solution I needed: a relatively new addition to the start docs + examples, but provides a very useful query client that automatically handles the throw redirect stuff without needing to do useSeverFn everywhere. Probably just missed this somewhere in the docs. The example I provided still works to throw an error to the browser, but I think that makes sense?

Still new to router + start and I think I tried to do too much at once and confused myself.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by maxwnewcomer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant