[Accordion] Unable to use component with AccordionSummary inside Accordion #15763
Closed
2 tasks done
Labels
component: accordion
This is the name of the generic UI component, not the React module!
new feature
New feature or request
Expected Behavior 🤔
Creating components like
should work in
Current Behavior 😯
If we have some controlled inputs inside expansion panel then every input change will trigger render function and ExpansionPanelSummary and content inside it will be rerendered. I trying to avoid that and created new stateless component with React.memo so there will be no unnecesary rerenders. But its not working :(
If I am doing something wrong please tell me how can i make this working :)
Steps to Reproduce 🕹
Link:
1.https://codesandbox.io/s/material-demo-po5mw
Context 🔦
Your Environment 🌎
The text was updated successfully, but these errors were encountered: