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

Fix useNotify triggers useless rerenders #8136

Merged
merged 1 commit into from
Sep 5, 2022

Conversation

fzaninotto
Copy link
Member

@fzaninotto fzaninotto commented Sep 2, 2022

Problem

All components that depend on useNotify re-render each time a notification is dispatched. This can be a problem in admins with many <DeleteButton>, for instance.

Solution

Split the notification context into two context.

@slax57 slax57 added this to the 4.3.2 milestone Sep 5, 2022
@slax57 slax57 merged commit 44b52e4 into master Sep 5, 2022
@slax57 slax57 deleted the fix-usenotify-triggers-rerenders branch September 5, 2022 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants