Skip to content

Elements are redrawn during layout rows #128

Discussion options

You must be logged in to vote

Please see my comment above - it explains the effect you are seeing.

If you are trying to build an infinite scroll, you can take a look at the following example - https://codesandbox.io/s/react-photo-album-90-fs95ss?file=/src/App.tsx

You can render each batch of photos in separate <PhotoAlbum> element, and this would prevent the layout shift.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@GreenEyeInvestor
Comment options

@igordanchenko
Comment options

Answer selected by igordanchenko
@GreenEyeInvestor
Comment options

@igordanchenko
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants