@drakkar.software/sunglasses-react 0.12.0 → 0.12.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.js +1 -0
- package/dist/index.mjs +1 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -271,6 +271,7 @@ var GlobalErrorBoundaryInner = class extends import_react6.default.Component {
|
|
|
271
271
|
return { hasError: true };
|
|
272
272
|
}
|
|
273
273
|
componentDidMount() {
|
|
274
|
+
if (typeof import_sunglasses_core3.subscribeGlobalError !== "function") return;
|
|
274
275
|
this.unsubscribe = (0, import_sunglasses_core3.subscribeGlobalError)((info) => this.handleGlobalError(info));
|
|
275
276
|
}
|
|
276
277
|
componentWillUnmount() {
|
package/dist/index.mjs
CHANGED
|
@@ -223,6 +223,7 @@ var GlobalErrorBoundaryInner = class extends React3.Component {
|
|
|
223
223
|
return { hasError: true };
|
|
224
224
|
}
|
|
225
225
|
componentDidMount() {
|
|
226
|
+
if (typeof subscribeGlobalError !== "function") return;
|
|
226
227
|
this.unsubscribe = subscribeGlobalError((info) => this.handleGlobalError(info));
|
|
227
228
|
}
|
|
228
229
|
componentWillUnmount() {
|