@lwc/engine-core 3.7.0 → 3.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +7 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -6097,7 +6097,12 @@ function runWithBoundaryProtection(vm, owner, pre, job, post) {
|
|
|
6097
6097
|
if (!shared.isUndefined(error)) {
|
|
6098
6098
|
addErrorComponentStack(vm, error);
|
|
6099
6099
|
const errorBoundaryVm = shared.isNull(owner) ? undefined : getErrorBoundaryVM(owner);
|
|
6100
|
-
|
|
6100
|
+
// Error boundaries are not in effect when server-side rendering. `errorCallback`
|
|
6101
|
+
// is intended to allow recovery from errors - changing the state of a component
|
|
6102
|
+
// and instigating a re-render. That is at odds with the single-pass, synchronous
|
|
6103
|
+
// nature of SSR. For that reason, all errors bubble up to the `renderComponent`
|
|
6104
|
+
// call site.
|
|
6105
|
+
if (!process.env.IS_BROWSER || shared.isUndefined(errorBoundaryVm)) {
|
|
6101
6106
|
throw error; // eslint-disable-line no-unsafe-finally
|
|
6102
6107
|
}
|
|
6103
6108
|
resetComponentRoot(vm); // remove offenders
|
|
@@ -7218,5 +7223,5 @@ exports.swapTemplate = swapTemplate;
|
|
|
7218
7223
|
exports.track = track;
|
|
7219
7224
|
exports.unwrap = unwrap;
|
|
7220
7225
|
exports.wire = wire;
|
|
7221
|
-
/** version: 3.7.
|
|
7226
|
+
/** version: 3.7.1 */
|
|
7222
7227
|
//# sourceMappingURL=index.cjs.js.map
|