Comments (7)
This is unlikely to be specific to Nuxt and is probably Vue behaviour. Would you try reproducing on https://stackblitz.com/github/nuxt-contrib/vue3-ssr-starter please? 🙏
from nuxt.js.
Bind the data attribute in the component via :data-abc="myValue"
and set myValue
based on if localstorage is set or not (e.g. use https://vueuse.org/core/useStorage/ to handle it).
from nuxt.js.
Start a new pull request in StackBlitz Codeflow.
from nuxt.js.
To note: A workaround is not using vanilla JS but vue's reactivity system + a store - then things will be properly set/unset.
from nuxt.js.
To note: A workaround is not using vanilla JS but vue's reactivity system + a store - then things will be properly set/unset.
What do you mean, how do I do this?
from nuxt.js.
This is unlikely to be specific to Nuxt and is probably Vue behaviour. Would you try reproducing on https://stackblitz.com/github/nuxt-contrib/vue3-ssr-starter please? 🙏
Should I submit the problem to the Vue repository?
https://stackblitz.com/edit/github-bfob1d?file=src%2Fpages%2Fhome.vue
Also, is the explanation of the problem clear and easy to understand?
from nuxt.js.
Bind the data attribute in the component via
:data-abc="myValue"
and setmyValue
based on if localstorage is set or not (e.g. use https://vueuse.org/core/useStorage/ to handle it).
Have you tried the problem?, I mean, did you understand the problem well?
from nuxt.js.
Related Issues (20)
- Server component cannot be used with kebab-case HOT 1
- 404 error after running `npx nuxi generate` with `app.baseURL` set. HOT 6
- Fail to alter the nuxt config via module HOT 5
- Nuxt 3.12 - ssr: false, nuxt generate - 404 on routes after page refresh HOT 3
- Nuxt2 cssnano version is too high HOT 4
- feat(kit): add `prepend` option to `addRouteMiddleware` HOT 3
- Bug Report: SyntaxError in @vue/devtools-core Module HOT 3
- `noScripts` improvements HOT 1
- navigateTo in middleware will double encode url on SSR HOT 5
- When loading the real machine on the mobile terminal in the production environment for the first time, _nuxt/builds/meta/xx.json failed to detch appears. After refreshing the browser, it is normal. Why HOT 4
- definePageMeta doesn't work/ gets ignored HOT 2
- `nuxtRoute` doesn't work at all in Server Components. Hydration error in Universal Components nested in Server Components HOT 1
- Component fails on initial page load, but works after HMR
- V4 - Cannot read properties of undefined (reading 'bind') - @nuxt/kit HOT 2
- Use cookie to custom useFetch composable
- 404 error after running npm run build with app.baseURL set. HOT 5
- useFetch Serialize Type HOT 2
- How to Assign Specific IDs to JavaScript Files Generated by Nuxt.js Build Process HOT 4
- Broken Navigation in Nuxt 3.12.2 - Uncaught (in promise) TypeError: Cannot redefine property: __navigationId at Function.defineProperty (<anonymous>) HOT 1
- HMR routes update
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nuxt.js.