nuxt / nuxt/devtools

fix: Theme settings resets after page reload

Open
#970 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
3.3k
Forks
214
Avg merge
13h 22m
Merged PRs (30d)
18

Description

🐛 The bug

After switching from a light theme to a dark theme, reloading the page resets this setting to default.

https://github.com/user-attachments/assets/adf1fc5e-8d31-4fd8-80d4-a37bb0300353

🛠️ To reproduce

none

🌈 Expected behavior

Dark theme settings should persist after page refreshes.

ℹ️ Additional context

With classic Vue devtools there are no such problems

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by switching from the light theme to the dark theme and reloading the page, then trace how the theme setting is stored and restored; done means the dark theme remains selected after refresh.

Written by the indexing model from the issue text.

Assessment

Tech stack
nuxt, typescript
Domain
devtools, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.