Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Rethink @observe #170

Description

@iccir

@observe was too complex. In practice, we only used @observe(after=) and almost exclusively called a single "sync properties to the DOM" method.

For now, we can safely refactor this functionality into @property via a change= attribute:

@property (change=_updateContent) title : String

Eventually, I'd like to have a simple observe attribute:

@property (observe) title : String

This would call propertyDidChange/observePropertyChange/etc in setTitle:. From there, implementation-specific methods like setNeedsUpdate or setNeedsLayout could be called.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions