a2ui-project / a2ui-project/a2ui
Reserve internal keywords in component props like child, children, path, etc
Offen
component: specification
P2
type: feature/enhancement
- Vorherrschende Sprache
- TypeScript
- Sterne
- 16.4k
- Forks
- 1.3k
- Ø Merge
- 2 T. 13 Std.
- Gemergte PRs (30 T.)
- 134
Beschreibung
There are some special keywords that should be reserved for the internals of A2UI. Some examples are child, children, path, among others. This surfaced in #1347.
We should do what we can to prevent unintended name collisions with these internal keywords. Maybe add an uncommon prefix, or have some type of build time check that prevents developers from using reserved keywords in their component props
This applies both to internal catalog components, as well as custom components created by devs.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.