Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX lts] Prevents infinite rerenders when errors occur during render #19250

Merged
merged 1 commit into from
Nov 9, 2020

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Nov 5, 2020

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
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

@pzuraq pzuraq changed the title [BUGFIX] Prevents infinite rerenders when errors occur during render [BUGFIX lts] Prevents infinite rerenders when errors occur during render Nov 5, 2020
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
@pzuraq pzuraq force-pushed the bugfix/prevent-infinite-rerenders-on-error branch from 1ec9f6c to 2f8cde9 Compare November 9, 2020 19:21
@rwjblue rwjblue merged commit e98322a into master Nov 9, 2020
@rwjblue rwjblue deleted the bugfix/prevent-infinite-rerenders-on-error branch November 9, 2020 22:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants