Skip to content

Props: Should have change detection, observed attributes #57

Description

@michaelpb

Important core feature: 1) Props should be observed attributes that trigger rerender, and 2) Props should know when they get changed in general, and be smarter during reconciliation during subcomponent.rerender()

The first has always been a 0.1.0 prereq, the second is more a requirement that will probably be fulfilled by the first, but should be clearly documented, in terms of techniques for detecting when props change. This is from experience noticing that it's quite clunky as-is (needing to stash away "receivedProps" and compare against current props)


Potentially related: Create a new CPart (or add feature to props) to provide utilities for setting own attributes as well, such as for stashing away important stuff for SSR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions