Static GitHub Issues

[2678] When to use <no-ssr> when not to?

prev: [ISSUE] Vuex + Axios + JWT Token Auth
next: nuxt-link does not support multiple components

Is there a way to clearly know when exactly to use <no-ssr>?

I built a screen front end library to determine screen sizes that utilises the window.matchMedia() function and got the window is not defined error while working on html conditionals. So I fixed it with adding <no-ssr> tag. But still quite confused at the moment.

Not sure if I missed anything from the documentation but SSR is quite confusing for me at the moment.

If anyone can help shed some light here it will be great!

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2328">#c2328</a>)</em></sub></div>