Answer the question
In order to leave comments, you need to log in
How can I switch the page using React Router after receiving data?
Interested in this question:
The project uses react-router. When a route is switched, a request is sent to the socket for information. But the page without information is already being rendered. As soon as the data is received, the page takes the desired form.
A question of such a plan: maybe there are some libraries / components on top of the router to skip rendering an empty page? How can this problem be solved?
Thank you for your attention
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