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
With VueUse 1.6.0 I have got an error that is not present in version 1.5.0.
Error:
nuxt.js:97 [nuxt] error caught during app initialization TypeError: Cannot read properties of null (reading 'document')
In the reproduction I have produced error with using useInfiniteScroll function (found same for useScroll) and it happens because on top of ref element I have an element with conditional rendering.
While testing, I have noticed that if I remove condition for rendering the element, error does not appear.
I have an example where I need the condition to be part of element tree that renders scrolling element and it worked in 1.5.0
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
With VueUse 1.6.0 I have got an error that is not present in version 1.5.0.
Error:
In the reproduction I have produced error with using
useInfiniteScroll
function (found same foruseScroll
) and it happens because on top of ref element I have an element with conditional rendering.While testing, I have noticed that if I remove condition for rendering the element, error does not appear.
I have an example where I need the condition to be part of element tree that renders scrolling element and it worked in 1.5.0
Reproduction
https://github.com/frasza/vueuse-nuxt-scroll
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: