MCPcopy Create free account
hub / github.com/AmazingAng/PolyWorld / onError

Function onError

src/components/ChunkLoadRecovery.tsx:27–30  ·  view source on GitHub ↗
(e: ErrorEvent)

Source from the content-addressed store, hash-verified

25 };
26
27 const onError = (e: ErrorEvent) => {
28 const msg = e.message ?? "";
29 if (isChunkFailure(msg)) reloadOnce();
30 };
31
32 window.addEventListener("unhandledrejection", onUnhandledRejection);
33 window.addEventListener("error", onError);

Callers

nothing calls this directly

Calls 2

isChunkFailureFunction · 0.85
reloadOnceFunction · 0.85

Tested by

no test coverage detected