Skip to content

Triple re-render of the Form.Item component content during mounting.Β #8029

@SL1V4

Description

@SL1V4
  • I have searched the issues of this repository and believe that this is not a duplicate.

Version

4.2.6

Environment

Windows11, google 132.0.6834.111, vue 3.2.0

Reproduction link

Edit on CodeSandbox

Steps to reproduce

Follow the link and open the console tab.

What is expected?

I expect the console to output only a single "1".

What is actually happening?

However, it outputs three "1"s, indicating a triple re-render. In the context of a large form with 1000 fields, these three re-renders cause the page to render very slowly, taking around 30 seconds.

Is it possible to eliminate the unnecessary re-renders?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions