Vueuse makes Nuxt stop updating
See original GitHub issueI’m trying to use @vueuse/core
with @nuxtjs/composition-api
in my Nuxt project.
But when I import { onClickOutside } from '@vueuse/core'
to my component, which will stop updating without any error message.
I have no idea how to track this problem.
Reproduction Link
Steps to reproduce
- Click the Open Button will see the div
Now you can see me
show andconsole.log('updated')
either. - Remove the comment of vueuse
// import { onClickOutside } from '@vueuse/core'
// onClickOutside(divRef, () => {
// console.log('onClickOutside')
// state.value = false
// })
- Click the Open Button will see the div
Now you can see me
isn’t show and console.log(‘updated’) either.
Thanks for your help. 😃
Issue Analytics
- State:
- Created 2 years ago
- Reactions:3
- Comments:19 (5 by maintainers)
Top Results From Across the Web
Supercharge your Vue.js and Nuxt.js apps with VueUse
Reduce boilerplate code and simplify your development process with VueUse - learn how in this comprehensive tutorial.
Read more >Nuxt.js Hackernews API update posts without loading page ...
We're using useIntervalFn , so please do not forget to install @vueuse/core . <template> <div> <button class="btn" ...
Read more >Nuxt - The Intuitive Vue Framework
Build your next Vue.js application with confidence using Nuxt. An open source framework making web development simple and powerful.
Read more >Creating Server-side Rendered Vue.js Apps Using Nuxt.js
Nuxt was updated to a production-ready 1.0 version in January 2018 and is part of ... Any good front-end developer will structure an...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fix released in
0.26.0
- let me know if that doesn’t work for you.Might be related to https://github.com/nuxt-community/composition-api/pull/525