Skip to content

Make our Node/Element/etc. hierarchy immutable. #41

@davepeck

Description

@davepeck

The types surfaced by this framework should be immutable (@dataclass(frozen=True)).

We should encourage people to write functions (including component functions and, if we get around to it, possibly middleware) to alter these items.

We should provide convenience routines for common operations (Element.append() and Element.extend(), for instance) that return new instances.

Metadata

Metadata

Assignees

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