-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Closed
Labels
Feature:Mappings EditorIndex mappings editor UIIndex mappings editor UITeam:Kibana ManagementDev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//
Description
On this PR #64049 I noticed that when defaultValues for form data changes, we do not re-render the form with the new default values.
I think this makes sense for something like "defaultValues", but my question is, would it make sense to provide users a way of re-setting form values externally?
The primary use case I can think of is situations like #64049, where we want to pre-populate a form and that the values used to pre-populate are themselves subject to change.
Workarounds I can think of: unmount and remount component with new defaultValue or calling form.setValue when new props come in.
Metadata
Metadata
Assignees
Labels
Feature:Mappings EditorIndex mappings editor UIIndex mappings editor UITeam:Kibana ManagementDev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//