-
Notifications
You must be signed in to change notification settings - Fork 419
Open
Milestone
Description
Is your feature request related to a problem? Please describe.
At the moment we generate a unique global id per control based on its UI Schema path.
It must be unique because we assign it to the id HTML field which should be unique over the document.
However this brings with it some issues, see for example
- Server Side Rendering causes different id's to be generated on client/server #2519
- Make HTML ID generation fast #2383
Describe the solution you'd like
There is no actual need for us to use the id field for this information. Instead we should just use a data HTML field without making the paths unique.
The data field could still be used for CSS, programmatic access etc. To make them unique, users then should prefix their forms, e.g. setting a different attribute on each of them.
Describe alternatives you've considered
Keep the current state but improve the id handling regarding performance, lifetime etc.
Package
Core
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels