@nick-skriabin/glyph 0.1.28 → 0.1.30
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 +18 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.cjs
CHANGED
|
@@ -2245,18 +2245,32 @@ function render(element, opts = {}) {
|
|
|
2245
2245
|
)
|
|
2246
2246
|
)
|
|
2247
2247
|
);
|
|
2248
|
+
const onUncaughtError = (error) => {
|
|
2249
|
+
if (debug) console.error("Uncaught error:", error);
|
|
2250
|
+
};
|
|
2251
|
+
const onCaughtError = (error) => {
|
|
2252
|
+
if (debug) console.error("Error caught by boundary:", error);
|
|
2253
|
+
};
|
|
2254
|
+
const onRecoverableError = (error) => {
|
|
2255
|
+
if (debug) console.error("Recoverable error:", error);
|
|
2256
|
+
};
|
|
2248
2257
|
const root = reconciler.createContainer(
|
|
2249
2258
|
container,
|
|
2250
2259
|
0,
|
|
2251
|
-
//
|
|
2260
|
+
// LegacyRoot tag
|
|
2252
2261
|
null,
|
|
2262
|
+
// hydrationCallbacks
|
|
2253
2263
|
false,
|
|
2264
|
+
// isStrictMode
|
|
2254
2265
|
null,
|
|
2266
|
+
// concurrentUpdatesByDefaultOverride
|
|
2255
2267
|
"",
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2268
|
+
// identifierPrefix
|
|
2269
|
+
onUncaughtError,
|
|
2270
|
+
onCaughtError,
|
|
2271
|
+
onRecoverableError,
|
|
2259
2272
|
null
|
|
2273
|
+
// transitionCallbacks
|
|
2260
2274
|
);
|
|
2261
2275
|
reconciler.updateContainer(wrappedElement, root, null, null);
|
|
2262
2276
|
const handle = {
|