You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now scroll the scroll bar to the bottom, and then click the button. The newly added data does not appear. You need to scroll the scroll bar online and then scroll down before it appears.
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a VueUse issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
Check that this is a concrete bug. For Q&A open a GitHub Discussion.
I solved this issue by using shallow copy instead of list.push, like: const myList = [...myList.value, newItem].
I am not sure why push may lose the reactivity in this scenario...
Not sure this would work for you, but this does work for me.
It's been a while, but I believe you're able to call "containerProps.onScroll();" after any changes made and it will update. Too bad it needs this workaround though.
Describe the bug
Now scroll the scroll bar to the bottom, and then click the button. The newly added data does not appear. You need to scroll the scroll bar online and then scroll down before it appears.
Reproduction
https://stackblitz.com/edit/vitejs-vite-unw2xw?file=src%2FApp.vue,package.json
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: