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)
- status of useLazyAsyncData for cached requests is success on router enter HOT 6
- Type "image/x-icon" for favicon missing from link types HOT 2
- header.location in Redirects is Double-Encoded in Nuxt v3.12.1 HOT 9
- Runtime config warning (typo error link) HOT 2
- NuxtLink with an external url gives vue router waring HOT 1
- Progressive Web App. HOT 2
- HMR with docker and apache proxy HOT 8
- State defined in a composable is not reactive when `ssr: false` HOT 2
- Massive amount of warnings with PrimeVue HOT 2
- nuxt 3.12 useState change detection fails when ssr is false HOT 2
- type error in `nuxt.config.ts` for app.head.link[] - definition for link not comaptible HOT 1
- useAsyncData's return type for data and error still is `| null` in v4 HOT 1
- The way dynamic route path is generated breaks usage with path-to-regexp HOT 5
- 'builder:watch' hook isn't released when nuxt.config is updated HOT 1
- WebSockets for dev server not respecting HTTPS HOT 1
- The route I customized in pages:extend cannot load the custom layout. HOT 4
- useState lost reactivity on `ssr: false` HOT 2
- `definePageMeta` breaks definition/compilation of inline JSX-components HOT 2
- `selectiveClient: 'deep'` with unocss breaks components with scoped styles and `<slot />` during 'build'
- Middleware ( in definePageMeta ) isn't called in Option API components in Nuxt v3.12.1 HOT 2
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.