e0fe018f34
Test code: useEffect(() => { setTimeout(() => testFunctionSync(), 5000); }, []); useEffect(() => { testFunction(); }, []); const testFunctionSync = () => { console.log("sleeping not"); // sleep(2000); console.log("woke up not"); throw new Error("Handle me"); }; const testFunction = async () => { console.log("sleeping"); sleep(2000); console.log("woke up"); throw new Error("Handle me"); }; Refs: - https://developer.mozilla.org/en-US/docs/Web/API/Window/unhandledrejection_event - https://github.com/megahertz/electron-log/blob/master/src/renderer/lib/RendererErrorHandler.js |
||
---|---|---|
.. | ||
accounts | ||
auth | ||
cast | ||
payments | ||
photos | ||
staff |