-
Notifications
You must be signed in to change notification settings - Fork 76
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
shouldRecycle=false breaks UI when scrolling the elements fast. #296
Comments
@ahamedalthaf can you try the latest version please? |
@rwwagner90 tried with latest version and still seeing the same issue. |
I'm experiencing this on emberclear, too :( I enabled shouldRecycle='false' because without it the item's did-insert modifier/hook isn't reused... which is problematic 🤷♂️ |
@rwwagner90 I have fixed this issue in the PR raised. Please check from your side. |
Thanks @ahamedalthaf! |
Should render the appendComponentPool only if ‘shouldRecycle’ is false We can stop using this fork when the following Issue/PR is resolved: html-next#296 html-next#299
Should render the appendComponentPool only if ‘shouldRecycle’ is false We can stop using this fork when the following Issue/PR is resolved: html-next#296 html-next#299
Was seeing |
…#296 (#299) * shouldRecycle=false breaks UI when scrolling the elements fast. Issue#296 shouldRecycle=false breaks UI when scrolling the elements fast. Issue#296 * shouldRecycle=false breaks UI when scrolling the elements fast. Issue #296 * Should render the appendComponentPool only if ‘shouldRecycle’ is false
While the referenced PR has been merged for some time (looks like it would have landed in I've tested in both Uncaught Error: Assertion Failed: value must non-negative
at Object.assert (index.js:181:1)
at SkipList.set (-private.js:1486:1)
at DynamicRadar._measure (-private.js:1762:1)
at DynamicRadar._updateIndexes (-private.js:1656:1)
at DynamicRadar.update (-private.js:782:1)
at -private.js:769:1
at Array.execJob (index.js:36:1)
at Scheduler.flush (index.js:96:1)
at index.js:82:1 I'll try and follow-up with more details as I begin to investigate... |
Anyone got an idea how to fix this? We have the same reason as @NullVoxPopuli to use |
since I posted my comment, I've found that using derived data for everything solves most problems. did-insert/did-update/will-destroy are problematic for more than just this scenario, but also outside of Ember. By using derived data, you appropriately get the correct behavior when you need it (when the root state changes, which is what happens during component re-use) |
'shouldRecycle: false' is breaking the UI when we try to scroll faster. This breaks the UI and completely block the user from doing any activity.
Version: "@html-next/vertical-collection": "1.0.0-beta.12"
Please find the error below in the browser console.
Assertion Failed: value must non-negative
The text was updated successfully, but these errors were encountered: