Skip to content

[Mappings Editor] Re-render when default values changes #64050

@jloleysens

Description

@jloleysens

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

No one assigned

    Labels

    Feature:Mappings EditorIndex mappings editor UITeam:Kibana ManagementDev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t//

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions