Skip to content

No Recursive Step - Potential Cause for Failing Key Tests #14

@JRJurman

Description

@JRJurman

When stepping through the logic for this test
https://github.com/tunnckoCore/demo-minmorph/blob/d587917be0f6e6ae2430a85082fd55b4899758a3/src/app/test-keyed.js#L148-L159

I noticed that we swap a larger chunk of the dom than we need to.
Specifically, here
image
image

We dump all of futureStartNode in the parentNode, and then later we pop off the second node.
In reality, I think we need to recurse down the tree more, and then only swap the TEXT nodes. There doesn't appear to be any recursive step - like in nanomorph, here:
https://github.com/choojs/nanomorph/blob/ccbffcf1f0138a0293f7c71ee6521c7640df7173/index.js#L121-L132

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions