nuxt / nuxt/devtools

fix: Storage does not show memory stored key-values

Open
#642 0 comments 3 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

If I create a nitro storage with memory driver, in the dev tools none of the set values are displayed, however from the server they can be read and write.

🛠️ To reproduce

https://stackblitz.com/edit/nuxt-starter-kr3v9h?file=nuxt.config.ts

🌈 Expected behavior

On the stackblitz link you have to open dev tools, select Server Routes and send a get request to the api/test endpoint.

The endpoint use useStorage to save some data to the shield and to the db storage.

After this if you select Storage tab on devtools you can see the data in db storage, but shield storage is shown as empty.

Data is saved in the shield storage, you can read it from any server middleware and enpoints, but the dev tools does not display them.

ℹ️ Additional context

No response

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

Start with the StackBlitz reproduction, the api/test server route, and the useStorage calls that write to the memory-backed shield storage. Compare what the devtools Storage tab displays for shield and db; done means the shield key-values appear there while remaining readable from server middleware and endpoints.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.