Use React Router useDataLoader for API's #9
SurajDesuntech
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The Middleware first renders the page and then call the API and after that it redirects it should be inverse
the API should called first and then the page should be rendered after that middleware will work properly
currently the page first loads and then redirects .
This can be achieved by using react new router v6 changes of using useDataLoader()
Beta Was this translation helpful? Give feedback.
All reactions