\n\n### Reproduction\n\nhttps://playground.vueuse.org/#eNqFU81u00AQfpVlL3HUYJfAqXKilqpIIASolJsvxpk4bte71v6ESJbPcEFwA3FEPAUH3oYCb8Hsbuw4UpIeLHnn+2bm+2Zna3pWVeHSAD2hscpkUWmiQJuKsJTnk4RqldBpwouyElKTmuiiBKXTshoRo+B5qvT5Apkwc+crRM9yQRoyl6Ikg1OsjOEoExIGXZVzUVZrQhjZgxWwgWuiFilj4t0lzLtKnpHwTHClScEro8mkRwy0NDBMeBx5F6gZDxrKiqUa8ERI/NZoLTg5zViR3aC3tso994M+f394f/vx++3XX39+/Pz37fPfL5/iyCf5Ak748n4xb5MTSiKE4qjXiI5waChzXuThtRIcJ1vb7IRmmF4wkC8rXaCNhJ4Qh1jM+XjmYtbJqI1nC8hudsSv1crGEvpKggK5hIR2mE5lDqjNwhevX8AK/zuwFDPDkH0AvAQlmLEaPe2x4TOU3eM5tU/ddRU8v1IXKw1ctaasUMtsHD+heHd2cvusb+Q+DB+5vIQ3OMV2Mw6vpuztzXoDhdFP+J4d7NMFf8NLYbiG2fae9Un7dhE59tu7j8fDDWwfjdyGHdpj4KNCQjAkkylOBuOEWEQwCJnIg4ElDFwS8d3CZcoMHB35UN95YLkj8uD42Gto2lY2vqvx+M7O4wOtnTkfshZBr4U4GeNdOnpzD4LhZNp2ZZDKLnlT1Sd3ul1Zb2Pz2NdY78G7kvGsWE7ren0/TRNHNuBTt6i0+Q8X48W2\n\n### System Info\n\n```Shell\nSystem:\n OS: Windows 11 10.0.26100\n CPU: (16) x64 AMD Ryzen 9 7940H w/ Radeon 780M Graphics \n Memory: 9.70 GB / 31.22 GB\n Binaries:\n Node: 22.17.1 - D:\\Program Files\\nodejs\\node.EXE\n npm: 10.9.2 - D:\\Program Files\\nodejs\\npm.CMD\n pnpm: 10.15.1 - D:\\Users\\jcwang\\AppData\\Roaming\\npm\\pnpm.CMD\n Browsers:\n Edge: Chromium (133.0.3065.69)\n Internet Explorer: 11.0.26100.1882\n npmPackages:\n @vueuse/components: ^13.9.0 => 13.9.0\n @vueuse/core: ^13.9.0 => 13.9.0\n @vueuse/integrations: ^13.9.0 => 13.9.0\n vue: ^3.5.21 => 3.5.21\n```\n\n### Used Package Manager\n\npnpm\n\n### Validations\n\n- [x] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\n- [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\n- [x] Read the [docs](https://vueuse.org/guide).\n- [x] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\n- [x] 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.\n- [x] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\n- [x] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[3214],{"name":3173,"color":3174},5027,"BUG | `useTimeoutFn` | 组件卸载后不会清除","2025-09-10T11:10:48Z","https://github.com/vueuse/vueuse/issues/5027",0.6796164,{"description":3221,"labels":3222,"number":3223,"owner":3176,"repository":3186,"state":3206,"title":3224,"updated_at":3225,"url":3226,"score":3227},"Hi @antfu, big thanks for providing Vue Demi.\r\n\r\nSince the breaking change introduced in [Vue Composition API 1.0.0-beta.22](https://github.com/vuejs/composition-api/blob/master/CHANGELOG.md#100-beta22-2020-12-19) `getCurrentInstance` only works with the following workaround in Vue 3:\r\n\r\n```\r\nconst vm = isVue3 ? getCurrentInstance() : getCurrentInstance().proxy\r\nconst lazy = vm.attrs.modelModifiers.lazy // will crash with getCurrentInstance().proxy\r\n```",[],23,"getCurrentInstance broken with Vue Composition API 1.0.0-beta.22","2020-12-24T14:07:30Z","https://github.com/vueuse/vue-demi/issues/23",0.6803251,{"description":3229,"labels":3230,"number":3231,"owner":3176,"repository":3176,"state":3206,"title":3232,"updated_at":3233,"url":3234,"score":3235},"### Describe the bug\n\nWith VueUse 1.6.0 I have got an error that is not present in version 1.5.0.\r\nError:\r\n```\r\nnuxt.js:97 [nuxt] error caught during app initialization TypeError: Cannot read properties of null (reading 'document')\r\n```\r\nIn 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. \r\nWhile testing, I have noticed that if I remove condition for rendering the element, error does not appear.\r\nI 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\n\n### Reproduction\n\nhttps://github.com/frasza/vueuse-nuxt-scroll\n\n### System Info\n\n```Shell\nNuxi info:\r\n------------------------------\r\n- Operating System: Windows_NT\r\n- Node Version: v20.9.0\r\n- Nuxt Version: 3.8.1\r\n- CLI Version: 3.9.1\r\n- Nitro Version: 2.7.2\r\n- Package Manager: pnpm@8.9.0\r\n- Builder: -\r\n- User Config: modules, ssr, devtools\r\n- Runtime Modules: @vueuse/nuxt@10.6.0, @nuxtjs/tailwindcss@6.9.4\r\n- Build Modules: -\r\n------------------------------\n```\n\n\n### Used Package Manager\n\npnpm\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://vueuse.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\n- [X] 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.\n- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],3543,"VueUse 1.6.0 - Cannot read properties of null (reading 'document')","2023-11-13T09:57:41Z","https://github.com/vueuse/vueuse/issues/3543",0.6969673,{"description":3237,"labels":3238,"number":3240,"owner":3176,"repository":3176,"state":3206,"title":3241,"updated_at":3242,"url":3243,"score":3244},"### Describe the bug\n\n[demo.txt](https://github.com/user-attachments/files/21911442/demo.txt)\n\n当我在谷歌和ME浏览器中打开这个demo,当点击iframe的内容时候,ME不会关闭弹窗\n但是谷歌浏览器中,会出现偶现关闭弹窗的情况\n\n### Reproduction\n\nhttps://playground.vueuse.org/?vueuse=10.10.1#eNq1Vdtu4zYQ/ZWBgEUcwLo4TRa7qp1um6ZAC7QptvsoYEFJI5sbiSRIylY3yG/0rd/R3+ondEhKlpMu8lCgDzY0Z25nLiQfom+VSvY9Rnm0NpXmyoJB2ytomdhuisiaIrouBO+U1BYeQIqbllf3d701vEZ4hEbLDs7eUYjeYFpJjWcn5mbH2lYe3mOzBNJ/wE61zCLJR1fyJI9CVFIYC52sWQubE8dFw1qD508MnP/mWcDF2aQ6I+OnPBeFgKPn0gkL3KOw57C5hgcnj+pkz9oeKbZP6hSPZE7xCrFOQ3+oGyTYMTFJAOuyt1YKeFe5nNS1qQqre/T9cwnuFAr42Wm8TxqcfDgSa76HfcybybuIQONRItoEVC0zZjYY4655o1mHwGtScdFygT844HZgxJHyw4HXdkfKVZa9InGHfLuzs2x0RcLOWmXyND0cDknJeN0nlezSb6zYvH6Trd68zVYfV68/qi3lXach5UTAcZ+4cSFQH7nNvZn0o2g6mi/ltty2SPBNK6nf0b9bGAYxxwP4+88//jpGn7s4AuqYaYes5sLxnX2/x07OMwgR1Inztd8akON6ywbsDseltJJCE0vgNpm91ilVH7Zg/FqnJ8tBorG/twimkgprQpIQzW+dkoZbLkUODR+w/tphLTY2h6vslZesVCeCZsI0Und5+HQ5FjFpl+D+z72RH3YOlxeZGjzQsSEeQTdwj32OuahxcAjJj8TKzy2wKll1v9WyF3VcyVbqHPZML+J4r+IqLrchjWK1624OWXKJHVxg5+FS6hp1rKn1vSHmI4cAUzo1gJEtr09DUtuo2TrELeUQ0+Gv5SGHC7J2vxWVAnpbssUqW5IUflmyci6OfK2lIg9BVf3nKq7GCuaZsJKo9hZPxuK69bx7/1PRFOXFmsf1DsU2Utj44M91TtHasEoeNfwzEofkUo8FdkxvuYhLSQeHNuki4C7keDafreaTNvh9jLPk7RRNh5wEXU3Ql8hQeLpA3UmgIxAt6V2h67zh2+STkYIeH5+ziOjKUbxFfadcbnp78ul6LiL/IPzkMXev+mvc++ywuv8C/skMDiuiXzUa1Hu6RY46Sz1AG9S3v/2CA30flXRAe3dvvqB8j74nxDGYfUdrRrRP7DzbH/07SFP6YG4Hi8JMRfmHYXxdnDU9gjcvlD7T/Sq59H7U0ejxH7KHikU=\n\n### System Info\n\n```Shell\nWindows,npm,vue3.2.41 vueuse9.10.0\n```\n\n### Used Package Manager\n\nnpm\n\n### Validations\n\n- [x] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\n- [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\n- [x] Read the [docs](https://vueuse.org/guide).\n- [x] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\n- [x] 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.\n- [x] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\n- [x] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[3239],{"name":3173,"color":3174},4976,"BUG | `onClickOutside` | 不同浏览器中反应不同","2025-08-21T06:20:49Z","https://github.com/vueuse/vueuse/issues/4976",0.6995295,{"description":3246,"labels":3247,"number":3248,"owner":3176,"repository":3176,"state":3206,"title":3249,"updated_at":3250,"url":3251,"score":3252},"### Describe the bug\n\n\r\n\r\nhttps://user-images.githubusercontent.com/22478003/192033352-4b5565fa-9c92-4b1d-b8cd-3c6219043e7f.mp4\r\n\r\n\r\n\r\nThe first time into the page no problem, the second time into the problem\r\n\n\n### Reproduction\n\nhttps://stackblitz.com/edit/vitejs-vite-qckkmi?file=src/App.vue\n\n### System Info\n\n```Shell\nSystem:\r\n OS: macOS 12.6\r\n CPU: (12) x64 Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz\r\n Memory: 31.45 MB / 16.00 GB\r\n Shell: 5.8.1 - /bin/zsh\r\n Binaries:\r\n Node: 16.16.0 - ~/.nvm/versions/node/v16.16.0/bin/node\r\n Yarn: 1.22.19 - ~/.nvm/versions/node/v16.16.0/bin/yarn\r\n npm: 8.18.0 - ~/.nvm/versions/node/v16.16.0/bin/npm\r\n Browsers:\r\n Firefox: 104.0.2\r\n Safari: 16.0\n```\n\n\n### Used Package Manager\n\nnpm\n\n### Validations\n\n- [X] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\n- [X] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\n- [X] Read the [docs](https://vueuse.org/guide).\n- [X] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\n- [X] 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.\n- [X] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\n- [X] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[],2244,"[useLocalStorage] When mergeDefaults uses functions, sometimes localStorage does not update","2022-12-01T11:51:03Z","https://github.com/vueuse/vueuse/issues/2244",0.7012183,{"description":3254,"labels":3255,"number":3259,"owner":3176,"repository":3176,"state":3206,"title":3260,"updated_at":3261,"url":3262,"score":3263},"### Describe the bug\n\nThe [toValue](https://vuejs.org/api/reactivity-utilities.html#tovalue) function (introduced in Vue 3.3) is used in VueUse v12, but the current documentation only mentions dropping Vue 2 support. Projects using Vue 3.0-3.2 will encounter errors due to this missing API.\n\nIt would be helpful to explicitly state in the documentation that VueUse v12 now requires Vue 3.3 or newer, as the dependency on toValue() makes it incompatible with Vue \u003C3.3 implementations.\n\n### Reproduction\n\nuseThrottleFn\n\n### System Info\n\n```Shell\nSystem:\n OS: macOS 15.3\n CPU: (20) x64 Intel(R) Core(TM) i9-10910 CPU @ 3.60GHz\n Memory: 32.80 MB / 32.00 GB\n Shell: 5.9 - /bin/zsh\n Binaries:\n Node: 20.18.3 - ~/.local/state/fnm_multishells/29847_1740627426112/bin/node\n Yarn: 1.22.22 - ~/.local/state/fnm_multishells/29847_1740627426112/bin/yarn\n npm: 10.8.2 - ~/.local/state/fnm_multishells/29847_1740627426112/bin/npm\n pnpm: 10.4.1 - ~/Library/pnpm/pnpm\n bun: 1.1.37 - ~/.bun/bin/bun\n Browsers:\n Chrome: 133.0.6943.127\n Safari: 18.3\n npmPackages:\n vue: 3.2.21 => 3.2.21\n```\n\n### Used Package Manager\n\npnpm\n\n### Validations\n\n- [x] Follow our [Code of Conduct](https://github.com/vueuse/vueuse/blob/main/CODE_OF_CONDUCT.md)\n- [x] Read the [Contributing Guidelines](https://github.com/vueuse/vueuse/blob/main/CONTRIBUTING.md).\n- [x] Read the [docs](https://vueuse.org/guide).\n- [x] Check that there isn't [already an issue](https://github.com/vueuse/vueuse/issues) that reports the same bug to avoid creating a duplicate.\n- [x] 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.\n- [x] Check that this is a concrete bug. For Q&A open a [GitHub Discussion](https://github.com/vueuse/vueuse/discussions).\n- [x] The provided reproduction is a [minimal reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) of the bug.",[3256],{"name":3257,"color":3258},"documentation","0075ca",4627,"BUG | `README.md` | VueUse is actually no longer supports Vue \u003C 3.3","2025-08-18T05:53:13Z","https://github.com/vueuse/vueuse/issues/4627",0.7016913,["Reactive",3265],{},["Set"],["ShallowReactive",3268],{"$fTRc1wZytZ_XrK4EfJfei_Sz-An4H4Yy6syhVxH_PVJc":-1,"$f7uOQ_VvhAhgVnRTun24Jvt2k0bmqf19Sn0hRD1htZqQ":-1},"/vueuse/vueuse/4875"]