rsnext/packages/react-refresh-utils/internal
Alex Kirszenberg 7bbc1aec9a
Aggregate updates using addStatusHandler and Promise.resolve instead of setTimeout (#42350)
The current `setTimeout` logic adds a constant overhead of 30ms when applying updates, which slows down HMR. As @sokra suggested, we can use the `addStatusHandler` API to have the HMR runtime let us know when its status changes. This also switches to `Promise.resolve` for update aggregation.
2022-11-07 21:06:18 +00:00
..
helpers.ts Aggregate updates using addStatusHandler and Promise.resolve instead of setTimeout (#42350) 2022-11-07 21:06:18 +00:00
ReactRefreshModule.runtime.ts Add support for "type": "module" in package.json (#33637) 2022-02-15 16:24:11 +00:00