How do I return data from middleware? #10857
-
|
I want similar behavior for middleware like action and loader when I return data() // this code straight up throwing error like // this code works but bubble up to error boundary I don't want to blow up the UI with Error Boundary when the user click a button that fire Route's action(). |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
There is no middleware in Remix v2 For all React Router related questions, please open discussion on https://github.com/remix-run/react-router/discussions You don't return data from middleware, please review the React Router middleware documentation for more information and examples |
Beta Was this translation helpful? Give feedback.
There is no middleware in Remix v2
For all React Router related questions, please open discussion on https://github.com/remix-run/react-router/discussions
You don't return data from middleware, please review the React Router middleware documentation for more information and examples