wirestate-core/hot
Development-only hot-reload entrypoint for Wirestate: the runtime the @wirestate/dev bundler plugin and framework providers use to swap containers in place when service modules are hot-replaced.
Remarks
Nothing here runs in production builds: the bundler plugin only injects calls during development, and framework integrations gate their registration on NODE_ENV. A transformed module opens itself with openHotModule, lets @Injectable() collect its classes while the body evaluates, and closes with closeHotModule.
Hot
| Name | Description |
|---|---|
| HotSwapOwner | A framework provider that owns a managed container and can rebuild it during a hot swap. |
| closeHotModule | Marks the end of a hot module's evaluation and registers the classes it declared. |
| isHotSwapping | Returns whether a hot swap is executing right now. |
| openHotModule | Marks the start of a hot module's evaluation. |
| registerHotModule | Registers injectable classes from an evaluated hot module. |
| registerHotSwapOwner | Registers a provider as the hot-swap owner of its managed container. |
| requestHotSwap | Requests a hot swap for every container whose classes went stale. |