Skip to content

Infinite Loop With Error Handler And Vuex #1505

Closed
vuejs/vue
#9489
@visualjerk

Description

@visualjerk

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:
[Vue warn]: You may have an infinite update loop in a component render function.

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions