Skip to content

Component is re-renedered when DOM changes around it #10331

Open
@r1chm8

Description

@r1chm8

Version

2.6.10

Reproduction link

https://codepen.io/Richm8/pen/VoWZQZ

Steps to reproduce

In the attached codepen, Open console and then click on the toggle button, you'll see that the created and destroyed hooks are called for the logger component even though the component is not having any manipulations performed on it.

What is expected?

The created and destroy hooks on logger not to be called

What is actually happening?

The created and destroy hooks on logger are being called

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions