fix: Storage does not show memory stored key-values
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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