DEV Community

Discussion on: How to detect scroll up and scroll down in Nuxt/Vue

Collapse
 
kissu profile image
Konstantin BIFERT

You can even use mounted() hook, that way no need to double check if it's on the client.
And AFAIK destroyed(), is only called on the client-side even if it's not listed here: nuxtjs.org/docs/concepts/nuxt-life...

Collapse
 
siumhossain profile image
sium_hossain

Got it
Thank you for sharing your thought 🤜🤛

Collapse
 
kissu profile image
Konstantin BIFERT

You're welcome! 🤗