nuxt / devtools

Unleash Nuxt Developer Experience
https://devtools.nuxt.com
MIT License
2.87k stars 160 forks source link

fix: Storage does not show memory stored key-values #642

Open rrd108 opened 6 months ago

rrd108 commented 6 months ago

🐛 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