-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes the type field from view nodes and removes normalization from nodes during compilation. It prevents inconsistencies when using `data` fields in default components because they won't support the "class" -> "className" or "for" -> "htmlFor" transformation. Instead of that, the whole concept of types was removed because it was mainly to distinguish between components and nodes, but now it isn't needed. Instead, the type field is gone and the patch checks for name === "text" instead. Also, there are individual checks for "class" and "for" that set, update, or remove their corresponding properties.
- Loading branch information
Showing
19 changed files
with
133 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.