GeezerVison is showing github.com — Revert Suspense cache Thenable.catch() change by bvaughn · Pull Request #22280 · react/react
Conversation
bvaughn
commented
Sep 9, 2021
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
And used it to import named hooks code.
Note this commit currently breaks the test shell.
And changed dynamic import() code to be passed in rather than embedded in the package
Ideally we can remove this param once the Webpack 5 upgrade has finished.
Fixed the actual case of error which was in InspectedElementCache checkForUpdate().
bvaughn
changed the title
Added named hooks feature flag to DevToolsFeatureFlags
Revert Suspense cache Thenable.catch() change
Sep 9, 2021
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for following up on this, and submitting as a separate PR!
not a big deal, but since the original commit landed against main, wouldn't it be easier to land this revert on main directly, instead of stacking on top #22263? it seems like #22263 only has a simple change on hookNamesCache.js, so i wouldn't expect it to produce any significant merge conflicts, but idk.
in any case, not a big deal, up to you
regarding the changes themselves, so if inspecting the element fails, we don't really show anything in the UI? what does that look like currently?
After taking another look with fresh eyes, I think I see the "uncaught error" issue I initially noticed was here:
did you verify if the case you were seeing before shows up now reported as a console.error after these changes?
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
bvaughn
commented
Sep 9, 2021
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
not a big deal, but since the original commit landed against main, wouldn't it be easier to land this revert on main directly, instead of stacking on top #22263? it seems like #22263 only has a simple change on hookNamesCache.js, so i wouldn't expect it to produce any significant merge conflicts, but idk.
I can land #22263 first then this PR so they are separate.
regarding the changes themselves, so if inspecting the element fails, we don't really show anything in the UI? what does that look like currently?
It will show a red icon with a tooltip that the parsing failed.
did you verify if the case you were seeing before shows up now reported as a console.error after these changes?
Yup! At least it seemed to.
If we see another case where it's not handled, let's dig in and figure out how to fix it too 😄
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
zhengjitf
pushed a commit
to zhengjitf/react
that referenced
this pull request
Apr 15, 2022
Reverts part of react#22275 (adding .catch() to Thenables in Suspense caches) in response to react#22275 (comment).
After taking another look with fresh eyes, I think I see the "uncaught error" issue I initially noticed was in checkForUpdate() (which did not pass an error handler to .then)
mrizwanashiq
pushed a commit
to mrizwanashiq/react
that referenced
this pull request
Jun 25, 2026
Reverts part of react#22275 (adding .catch() to Thenables in Suspense caches) in response to react#22275 (comment).
After taking another look with fresh eyes, I think I see the "uncaught error" issue I initially noticed was in checkForUpdate() (which did not pass an error handler to .then)
hanzo-dev
pushed a commit
to hanzoai/react
that referenced
this pull request
Sep 9, 2026
Reverts part of react#22275 (adding .catch() to Thenables in Suspense caches) in response to react#22275 (comment).
After taking another look with fresh eyes, I think I see the "uncaught error" issue I initially noticed was in checkForUpdate() (which did not pass an error handler to .then)
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|