Skip to content

fix(mobile): fix endless rendering of asset grid when scrolling - #3010

Merged
alextran1502 merged 1 commit into
mainfrom
dev/fix-endless-asset-grid-rendering
Jun 29, 2023
Merged

alextran1502 merged 1 commit into
mainfrom
dev/fix-endless-asset-grid-rendering

Conversation

@fyfrey

@fyfrey fyfrey commented Jun 28, 2023 •

Copy link
Copy Markdown
Collaborator

Currently, the entire asset grid is rebuilt multiple per second while scrolling with the draggable scroll bar. This is awful for performance and results in all sorts of issues originating from re-rendering (such as animation flickering).

This PR fixes the issue by not calling setState within build

@vercel

vercel Bot commented Jun 28, 2023

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
immich ⬜️ Ignored (Inspect) Jun 28, 2023 3:47pm

@alextran1502
alextran1502 merged commit 1ab05e8 into main Jun 29, 2023
@alextran1502
alextran1502 deleted the dev/fix-endless-asset-grid-rendering branch June 29, 2023 02:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants