-
Notifications
You must be signed in to change notification settings - Fork 854
Closed
Description
I know this sort of thing has come up before (#230). But that's not my intention. When I first submitted Solid I did several things unknowingly mimicking the vanillajs implementation not realizing it was generally seen as bad form. They might not be the type of considerations a VDOM library would consider, but in the range of data-driven libraries perhaps there is something here that should be said.
Roughly I'm thinking:
-
A data driven library should provide at minimum:
- mechanism to update data
- automatically/manually trigger DOM updates
- provide a mechanism or abstract complexity of reconciliation of basic template control flow (conditionals, loops)
-
An implementation should:
- At any at rest view state should be re-constructable from data only. (Ie. any atom of state cannot exist solely in DOM nodes at rest)
- Treat DIV.main as the mount/entry point. All DOM interactions within should be bound as part of the library's mechanisms.
- Not explicitly exploit Chrome's unclear performance boost using requestAnimationFrame to clear rows.
Is calling this out unreasonable? Is this too restrictive or specific?
NullVoxPopuli and maxmiltonbrainkimbrainkim
Metadata
Metadata
Assignees
Labels
No labels