Skip to content

Field > change key with resetCount #615

Open
@testplop

Description

@testplop

Hi,

Why are you changing the Fragment key each time there is a reset?

In render of Field we have this:

return <React.Fragment key={resetCount}>{returnChildNode}</React.Fragment>;

This is causing unwanted unmount/remount of the Field each time we reset the form.

I don't see the point of doing that, but maybe I'm missing something. Can you help me understand?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions