Answer the question
In order to leave comments, you need to log in
Why duplicate api requests in react SPA?
The project uses react SPA, redux, react-router, connected-react-router.
In the middleware, fetch requests are dispatched by '@@router/LOCATION_CHANGE'.
There is data that is always used when the site is first loaded.
For some reason requests occur several times.
Does anyone have any thoughts on this?
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