G
G
GaserV2020-08-25 11:55:32
React
GaserV, 2020-08-25 11:55:32

Why is the page twitching on the first load of the React.lazy page?

Faced with such a nuance. Pages imported via React.lazy. Route wrapped in Suspense. There are tab links on the page. And at the first click on the tab, if it has not been opened before, then as if the application is loaded again. If you go to another tab and back - this is no longer there. Yes, aware of lazy loading. But maybe there is an option how this can be prevented? For the interface jumps, which is not good

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saburchik Saburov, 2021-10-23
@Saburchik

A similar situation, I switch components and where there are compressed img, they twitch slightly on the first load. Did you find a solution?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question