Skip to content

hotGame ​

Function of @v12-engine/engine

ts
export declare function hotGame(hot: HotContext | undefined, current: Game<unknown>, next: unknown): void;

A game's module's new version, taken while it runs (hot reload), as hotRules takes a module's: at the end of the module that makes the game, the call to Vite written out as it is (Vite finds a module that takes its own new versions by it):

if (import.meta.hot) import.meta.hot.accept((module) = hotGame(import.meta.hot, game, module?.game))

The rules the hosts were given are made the new version's in place (hotRules); the view, a module of its own, takes its own (the client's hotView). What does not go loads the page again