You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use useState in combination with v-model and reload the page with DevTools 'Payload' opened, the console get's logged full with error TypeError: 0 is read-only per tick. This also seems to be triggered when changing a value.
Below a simplified example:
Steps:
Open Link below
Open Nuxt DevTools
Go to 'Payload' page in Nuxt DevTools
Open Firefox DevTools on Console
Change selected Value
➡ Error is logged
The repeated errors could not be reproduced on StackBlitz. Hard-Reloading the page is also not possible with StackBlitz. So it's only reproducable on value-change.
It took me a while to figure out, that the error is propably caused by Nuxt DevTools and not my own code. So, hopefully I did not overlook anythink.
🐛 The bug
When I use
useState
in combination withv-model
and reload the page with DevTools 'Payload' opened, the console get's logged full with errorTypeError: 0 is read-only
per tick. This also seems to be triggered when changing a value.Below a simplified example:
Steps:
The repeated errors could not be reproduced on StackBlitz. Hard-Reloading the page is also not possible with StackBlitz. So it's only reproducable on value-change.
It took me a while to figure out, that the error is propably caused by Nuxt DevTools and not my own code. So, hopefully I did not overlook anythink.
🛠️ To reproduce
https://stackblitz.com/edit/nuxt-devtools-yry9cp9b?file=app.vue
🌈 Expected behavior
No error when changing state with DevTools opened.
ℹ️ Additional context
Example component:
The text was updated successfully, but these errors were encountered: