node_modules/preact/compat/src/suspense.js in isomorfeus-preact-10.6.62 vs node_modules/preact/compat/src/suspense.js in isomorfeus-preact-10.7.0
- old
+ new
@@ -1,10 +1,10 @@
import { Component, createElement, options, Fragment } from 'preact';
import { assign } from './util';
const oldCatchError = options._catchError;
-options._catchError = function(error, newVNode, oldVNode) {
+options._catchError = function(error, newVNode, oldVNode, errorInfo) {
if (error.then) {
/** @type {import('./internal').Component} */
let component;
let vnode = newVNode;
@@ -17,10 +17,10 @@
// Don't call oldCatchError if we found a Suspense
return component._childDidSuspend(error, newVNode);
}
}
}
- oldCatchError(error, newVNode, oldVNode);
+ oldCatchError(error, newVNode, oldVNode, errorInfo);
};
const oldUnmount = options.unmount;
options.unmount = function(vnode) {
/** @type {import('./internal').Component} */