Answer the question
In order to leave comments, you need to log in
How can you do asynchronous actions before moving to a new route without showing it?
I want to understand how to make a pre-request, for example, before entering the Route path='/users' component=Users So that before rendering this component some kind of asynchronous action is activated, and then the component is drawn. That is, something like this but which is not there:
After receiving a response from the server, we throw it into the component and draw it. The preloader is not needed, you can wait on the parent component for a request to the server.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question