Answer the question
In order to leave comments, you need to log in
Why does React slow down after multiple page transitions?
I develop dashboard applications. The code base is quite extensive and there is a lot of work with data, but I follow the performance. Using Redux, routing with react-router-dom and history.
Now I noticed that in the dev assembly, after ~ 20-25 page transitions, some kind of throttling occurs. There are no stand-out processes in the performance, it just takes much longer. Actions that take 130ms to block the thread for a second. And this is only in the dev version. In the prod, I could not call throttling - everything works instantly.
Have you encountered this in your projects? Is it worth worrying about lag in Virgo? Or is this the norm for non-optimized code? Why can this happen?
Answer the question
In order to leave comments, you need to log in
Just random: maybe using < React.StrictMode > ? He creates all sorts of game in dev mode, but is cut out in prod-assembly.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question