Skip to content

Question: Should we be setting any ground guidelines for what a Data Driven implementation is? #430

Closed
@ryansolid

Description

@ryansolid

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:

  1. 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)
  2. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions