Skip to content

Function: createHotFooter() ​

ts
function createHotFooter(): string;

Defined in: src/wirestate-dev/transform/hot-transform.ts:41

Builds the hot-reload footer appended to a module declaring injectable classes.

Returns ​

string

JavaScript footer, starting with a newline.

Remarks ​

The footer closes the module in the Wirestate hot runtime, which registers the classes collected since the header under stable ids derived from the module id. When the module declares, or previously declared, such classes it also self-accepts hot updates so an edit stops propagating up the import graph, and the accept callback asks the runtime to swap the containers still holding older generations.