How to use useSubmission in layout?
So I have a submit button in my sidebar as such I've created my
app.tsx
file like so
However, I'm now getting this error
<A> and 'use' router primitives can be only used inside a Route.
How can I fix this?3 Replies
You're using useSubmission outside of <Router>
Make a separate component that is a child of <Router> and use
useSubmission
within itDamn. That did it. Thanks!
:Worry_CoffeeSmile: