Skip to content

feat: check for outdated props after first render#75

Merged
maartenbreddels merged 4 commits intomasterfrom
feat-check-outdated-first-render
Jan 16, 2025
Merged

feat: check for outdated props after first render#75
maartenbreddels merged 4 commits intomasterfrom
feat-check-outdated-first-render

Conversation

@iisakkirotko
Copy link
Collaborator

If children or props were updated while the first render's async function resolutions were still settling, the change would not be reflected in the front-end until the next rerender.

To avoid unnecessary rerenders, we use lodash's isEqual to determine whether the initial props/children are equal to the ones after the render, and update if not.

iisakkirotko and others added 4 commits January 16, 2025 15:41
If children or props were updated while the first render's async function resolutions were still settling, the change would not be reflected in the front-end until the next rerender.
@maartenbreddels maartenbreddels force-pushed the feat-check-outdated-first-render branch from 604b035 to 65ad8f2 Compare January 16, 2025 14:41
@maartenbreddels maartenbreddels merged commit 233084b into master Jan 16, 2025
12 checks passed
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.

2 participants