question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Infinite loop when re-opening Vue Devtools

See original GitHub issue

Reproduction

When I close and re-open the Vue Devtools, it starts an infinite loop with an error backend.js:1604 Inspector pinia not found. As of right now, I have no clue what causes it, but it seems to happen consistently.

Steps to reproduce the behavior

https://user-images.githubusercontent.com/9141017/121444255-2d0e8580-c95d-11eb-9cf0-214f134e44f0.mp4

Additional information

  • Microsoft Edge Version 91.0.864.41 (Official build) (x86_64)
  • vue-devtools v6.0.0-beta.14
  • pinia@2.0.0-beta.2
  • vue@3.1.1

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
posvacommented, Jun 24, 2021
0reactions
philippedasilva-orizonecommented, Jun 21, 2021

Hi @posva

I got the same behavior and I believe I may introduce another clue on what might going wrong:

As I change the state of my stores (adding/removing fields), it seems vue-devtools or your current support implementation doesn’t live well with undefined values while other fields may already exist… when using some kind of local or session storage. Maybe this just needs a simple check on the passed state and see if it matches the expected types. If not, a simple $reset call might do the trick. Still feels like a hack but that might work (sry, don’t know much about vue devtools)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Infinite loop on component click #561 - vuejs/devtools - GitHub
I managed to "fix" the problem locally on my dev env by removing the @click="visible.addProduct = false" event-listener on the button on line ......
Read more >
Vue.js warns You may have an infinite update loop in a ...
This ends with browser doing infinite loop (verified with console.log) and Vue Devtools gives warning "You may have an infinite update loop ...
Read more >
Help tracing devtools calling my code [RangeError - Vue Forum
I believe I introduced a bug in my code somewhere weeks ago but it just now relieved itself when I opened devtools. So,...
Read more >
Using Local Storage to Persist Login State
Session storage only stores data for the duration of the page session, while local storage stores data even after the browser is closed....
Read more >
[Solved]-Vue for loop multi-line output-Vue.js - appsloveworld
More Query from same tag · [Vue warn]: Error in render: "TypeError: Cannot read property 'products' of undefined" · infinite loop when create...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found