Repository navigation
[all components] Do not memoize the state when not needed - #3812
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
7aa2c61 to
15600c6
Compare
Greptile SummaryRemoved unnecessary
Confidence Score: 5/5
Important Files Changed
|
atomiks
left a comment
There was a problem hiding this comment.
The only case I can think of memo being used is:
<Component
render={
(props, state) => <MemoComp {...props} state={state} />
}
/>Though individual props are unmemoized already (notably, event handlers), so I don't think this was relevant to begin with?
Yes, that's the only actual difference in behavior I could find, but I think it's not one we should optimize for |
Closes #3495