Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upInfinite Loop With Error Handler And Vuex #1505
Closed
Labels
Comments
This comment has been minimized.
This comment has been minimized.
|
I run into the same issue... |
This comment has been minimized.
This comment has been minimized.
|
This is actually Vue core lib's issue. I already made a PR for fix. vuejs/vue#9489 |
This comment has been minimized.
This comment has been minimized.
|
I'm having this issue as well. While we wait for the PR to push does anyone have a workaround for this? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.5.0
Reproduction link
https://codesandbox.io/s/z6ww1zp2q4
Steps to reproduce
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.