Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve re-render checking using memo in TransitionPresence #98

Closed

Conversation

ThaNarie
Copy link
Member

@ThaNarie ThaNarie commented Feb 28, 2023

Improve rerender checks in TransitionPresence

The switch to memo didn't work out since it would block too much
rendering when updating other props (or children) of the children passed
to the TransitionPresence.

A story is added for the above scenario, so we won't make the same
mistake in the future.

Some comments and logging is added since this component will receive
other updates shortly.

#92

The switch to `memo` didn't work out since it would block too much
rendering when updating other props (or children) of the children passed
to the TransitionPresence.

A story is added for the above scenario, so we won't make the same
mistake in the future.

Some comments and logging is added since this component will receive
other updates shortly.
@ThaNarie ThaNarie force-pushed the feature/92-use-memo-for-children-equality-check branch from 92c51e9 to 52af025 Compare March 1, 2023 11:01
@ThaNarie ThaNarie linked an issue Mar 1, 2023 that may be closed by this pull request
@leroykorterink
Copy link
Collaborator

Closing this PR because it's not needed with the changes from #112

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.

Use react memo to check children equality in TransitionPresence
2 participants