Patch Changes
-
Add dual-thread commutation logs for troubleshooting when
REACT_ALOG=trueor global define__ALOG__is set. (#2081) -
Use error cause to simplify the error msg of lazy bundle loading. User can catch the error cause to get the original result: (#2056)
const LazyComponent = lazy(async () => { try { const mod = await import('./lazy-bundle'); return mod.default; } catch (error) { console.error(`Lazy Bundle load failed message: ${error.message}`); // User can catch the error cause to get the original result console.error(`Lazy Bundle load failed result: ${error.cause}`); throw error; } });