Vuex: Infinite Loop With Error Handler And Vuex

Created on 12 Feb 2019  路  3Comments  路  Source: vuejs/vuex

Version

2.5.0

Reproduction link

https://codesandbox.io/s/z6ww1zp2q4

Steps to reproduce

  • open browser console

What is expected?

Not getting an infinite render loop:

What is actually happening?

Getting an infinite render loop


This happens when you handle an error that was caused during rendering and try to commit it to the store.

It looks like a component that throws an error tries to rerender after the store is updated, even so it doesn't use the store's state.

bug

Most helpful comment

This is actually Vue core lib's issue. I already made a PR for fix. vuejs/vue#9489

All 3 comments

I run into the same issue...

This is actually Vue core lib's issue. I already made a PR for fix. vuejs/vue#9489

I'm having this issue as well. While we wait for the PR to push does anyone have a workaround for this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Ge-yuan-jun picture Ge-yuan-jun  路  3Comments

gdelazzari picture gdelazzari  路  3Comments

niallobrien picture niallobrien  路  3Comments

Nickvda picture Nickvda  路  3Comments

ijse picture ijse  路  3Comments