@rpcbase/client 0.335.0 → 0.337.0
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 +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -360,13 +360,13 @@ const initWithRoutes = async (routesElement, opts) => {
|
|
|
360
360
|
}
|
|
361
361
|
return false;
|
|
362
362
|
};
|
|
363
|
-
const phReactHandler = (
|
|
363
|
+
const phReactHandler = (reactContext) => (error, errorInfo) => {
|
|
364
364
|
const err = toError(error);
|
|
365
365
|
posthog.captureException(err, {
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
reactContext,
|
|
367
|
+
componentStack: errorInfo?.componentStack
|
|
368
368
|
});
|
|
369
|
-
if (
|
|
369
|
+
if (reactContext === "uncaught") {
|
|
370
370
|
console.warn("Uncaught error", err, errorInfo?.componentStack);
|
|
371
371
|
}
|
|
372
372
|
};
|