-
-
Notifications
You must be signed in to change notification settings - Fork 32.5k
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
[Table] Use stable context API #13529
[Table] Use stable context API #13529
Conversation
} | ||
function TableBody(props) { | ||
const { classes, className, component: Component, ...other } = props; | ||
const childContext = { variant: 'body' }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As an easy perf optimization I would suggest moving this to a string only. Otherwise a rerender of TableBody will trigger a rerender of every context consumer since strict equality is used for rerender check.
Already included the perf optimization
c2aa160
to
a964103
Compare
a964103
to
9a59daf
Compare
@eps1lon A quick benchmark on server side. I think that we are good to go.
|
Good job here! |
Part of #13394.
Only form and theme context left. Theme will be addressed by #13503. I'm working on the form.