Skip to content

Function: requestHotSwap() ​

ts
function requestHotSwap(): void;

Defined in: src/wirestate-core/hot/hot-swap.ts:41

Requests a hot swap for every container whose classes went stale.

Returns ​

void

Remarks ​

Called by the dev-plugin footer from a module's self-accept callback. The swap itself runs in a microtask so that every module of one HMR batch registers its replacement classes first, and then executes as one synchronous block: teardown deepest-first, rebuild root-first, commit. Nothing can render between those steps, so no component ever resolves against a torn-down container.