PolymerLabs / uni-virtualizer

Monorepo for a "universal" (renderer-agnostic) virtual scroller and renderer-specific variants

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Browser freezes when switching between scrollers

rbjarnason opened this issue · comments

In version 0.0.6 and also in the 0.0.7 branch - we have this problem where the browser freezes when switching between different parts of our app that has different elements. The scrollers work fine in each different part of our app if we visit that route first. The only way to recover is to close the browser tab in Chrome and stopping the app in Firefox.

We are using Lit 2.

Here is what happens from the Firefox dev tools perspective when clicking on a new route.

Screenshot from 2021-06-27 22-29-38

Screenshot from 2021-06-27 22-29-24

Screenshot from 2021-06-27 22-28-22

Same issue. Old version for lit-html 1.x works perfect in this regard.

I will take a look at this as soon as I have a moment, but if either of you has time to create a minimal repro that would be very helpful.

I believe this issue will no longer reproduce (in 0.7.0-pre.2 and later). Please confirm.

Confirmed, this is now working as of 0.7.0-pre.2 :)