N
N
Nikita Sokolov2021-08-09 19:30:07
React
Nikita Sokolov, 2021-08-09 19:30:07

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

1 answer(s)
A
Alexandroppolus, 2021-08-09
@wb_by

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 question

Ask a Question

731 491 924 answers to any question