Skip to content

Mounted hook always triggers on newly loaded elements causing flickering #362

Open
@Boshes

Description

@Boshes

Describe

The Mounted hook of the item component always triggers on newly loaded elements causing flickering.

This seems to be stemming from this issue that was merged in #294 but seems to have been removed in this commit, 950cb6a.

This was recently brought up again in this issue, #348, and the issue doesn't seem to be fixed as it.

Doing the solution in the first issue for the key property being the uniqueKey Item pushed to the slots in getRenderSlots does fix the issue to prevent all mounted hooks from triggering and only triggering those initially loaded.

I'm unsure as to why the first issue's solution was removed and hoping for a proper fix.

To Reproduce

I created this codesandbox of the issue
https://codesandbox.io/s/blazing-sky-3b9gu

Other

  • Testing on Chrome Version 96.0.4664.55 (Official Build) (x86_64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions