Closed becem-gharbi closed 8 months ago
@nuxtjs/color-mode: v3.3.2 nuxt: v3.8.2
https://stackblitz.com/edit/github-mcvmdz?file=nuxt.config.ts
Run the application. Two pages are present:
index
dark
When navigating from index page to dark page the dark mode should be applied on the dark page only.
When navigating from index page to dark page the dark mode is applied instantly on the index page before the dark page is rendered.
Version
@nuxtjs/color-mode: v3.3.2 nuxt: v3.8.2
Reproduction Link
https://stackblitz.com/edit/github-mcvmdz?file=nuxt.config.ts
Steps to reproduce
Run the application. Two pages are present:
index
which uses the default light theme.dark
which uses a forced dark theme. This page takes 3 seconds for setup to resolve.What is Expected?
When navigating from
index
page todark
page the dark mode should be applied on thedark
page only.What is actually happening?
When navigating from
index
page todark
page the dark mode is applied instantly on theindex
page before thedark
page is rendered.