Skip to content

Dirty subtrees to no longer trigger transforms #953

Closed

Description

@zurfyx

Why? They encourage bad performance patterns such as the current KeywordsPlugin -> a node inside the ElementNode changes and the parents iterates all over their children to react to its change.

To do this, we have to tweak how the dirtyness works now:

remove -> Marks both siblings as dirty
replace -> bothMarks both siblings as dirty
append -> Marks last node in ElementNode as dirty
insertBefore -> Marks node and previous node as dirty
insertAfter -> Marks node and next node as dirty

This way users can react to changes happening to their siblings

Activity

  1. added this to the V0.1 milestone on Dec 6, 2021
  2. self-assigned this
    on Dec 6, 2021
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

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions