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

fix: errorCallback was incorrectly invoked in SSR #3793

Merged
merged 3 commits into from
Oct 12, 2023

Conversation

divmain
Copy link
Contributor

@divmain divmain commented Oct 12, 2023

Details

Prior to this PR, the behavior of errorCallback in SSR often resembled that in CSR. That behavior is not due to explicit design choices, but rather that the error boundary logic lives in @lwc/engine-core and doesn't have special conditions for SSR.

The decision was made that errors will not be recoverable, they will always bubble up, & errorCallback will never be invoked in the SSR context. The behavior of errorCallback and boundaries will remain unchanged for CSR.

Does this pull request introduce a breaking change?

  • 🚨 Yes, it does introduce a breaking change.

Technically yes, but SSR has not been widely adopted yet, so impact is minimal (and positive rather than disruptive).

  • ⚠️ Yes, it does include an observable change.

GUS work item

W-14270071

@divmain divmain requested a review from a team as a code owner October 12, 2023 21:35
@divmain divmain merged commit f27d397 into master Oct 12, 2023
11 checks passed
@divmain divmain deleted the divmain/no-errorCallback-in-SSR branch October 12, 2023 23:42
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