Skip to content

The key of vNode cannot be 0. #427

@monkingxue

Description

@monkingxue

When I read the source code of keyIndex function, I found that if I have a vNode with the key is 0, the vNode will be add to free array instead of keys, I am confused.

image

I think the if (child.key) is the source to due to this result.

Is a bug or a special design? if it's a special design, why to design it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions