Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Boshes opened this issue Dec 3, 2021 · 0 comments
Open
Labels

Comments

@Boshes
Copy link

Boshes commented Dec 3, 2021

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)
@Boshes Boshes added the bug label Dec 3, 2021
@Boshes Boshes changed the title Mounted hook always triggers on newly loaded elements Mounted hook always triggers on newly loaded elements causing flickering Dec 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant