[core] Decide if a value belongs in props or context #24450
Labels
breaking change
component: text field
This is the name of the generic UI component, not the React module!
Milestone
I think the actual code smell is computing some variable from context and props. Just like a component instance should either read from state or props (but not switch between) we shouldn't listen to context and props. It's a general issue with our form components where
<FormControl disabled><Input disabled={false} /></FormControl>
is allowed for some reason. Thedisabled
state should live at a single point.In v5 we should revisit this and decide if something lives in props or context.
Originally posted by @eps1lon in #19319 (comment)
Related:
The text was updated successfully, but these errors were encountered: