devtools icon indicating copy to clipboard operation
devtools copied to clipboard

fix: reactivity of useState is not populated properly

Open kleinpetr opened this issue 1 year ago â€ĸ 0 comments

🐛 The bug

When I change the value in the useState, inside a compsable, the new value is not populated proeprly.

Reproduction process

  1. open devtools -> payload and see test-my-test
  2. click Update button
  3. reload value in the devtools (it's still empty)

đŸ› ī¸ To reproduce

https://stackblitz.com/~/github.com/kleinpetr/nuxt-playground/tree/devtools-usestate-reactivity

🌈 Expected behavior

I would expect the property is being updated.

â„šī¸ Additional context

When you reload the page with closed devtools, then hit the Update button and then open them, the value is there and when you click for example to Add string and reload the value, it works correctly but once you hit the Update button again and then reload value in devtools it's stucked.

kleinpetr avatar Apr 01 '24 17:04 kleinpetr