-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BUGFIX] Prevents infinite rerenders when errors occur during render
This adds a preventative measure against infinite rerenders that happen due to an unrecoverable error during rendering. This type of error is really annoying from a DX perspective and can really throw developers for a loop. The most common cases appear to be caused by the Ember Inspector, which polls after a render has occured whether on not it was succesful, and in doing so also dirties state, causing a rerender. An example of this is seen in this [example reproduction](https://github.com/xg-wang/getter-error) with the following steps: 1. Load the app 2. Click the To View link to enter the page with the error 3. Open up the Ember Inspector to activate it 4. Reload the page
- Loading branch information
Chris Garrett
committed
Nov 9, 2020
1 parent
66c56e4
commit 2f8cde9
Showing
3 changed files
with
45 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters