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
The issue is that the useVirtualList is not providing an updated list when running the application through unit tests. Making the application to behave as if there is no generated content (list) at all.
This issue is captured when the container is changed dynamically, in cases where the container is only visible in certain circumstances. The application starts the composable, the composable gets the reference of container but then the returned list is forever empty.
What happens is that the composable has useWatchForSizes and this function awaits for some change in container, that doesn't happen because it was changed dynamically and the only way to know is through size but size doesn't trigger the watch. Making list always empty.
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.
Describe the bug
The issue is that the
useVirtualList
is not providing an updatedlist
when running the application through unit tests. Making the application to behave as if there is no generated content (list
) at all.This issue is captured when the container is changed dynamically, in cases where the container is only visible in certain circumstances. The application starts the composable, the composable gets the reference of
container
but then the returnedlist
is forever empty.What happens is that the composable has
useWatchForSizes
and this function awaits for some change incontainer
, that doesn't happen because it was changed dynamically and the only way to know is throughsize
butsize
doesn't trigger thewatch
. Makinglist
always empty.Reproduction
don't have a link for that yet
System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: