MCPcopy Create free account
hub / github.com/RtlZeroMemory/Rezi / createViewHotReloadApp

Function createViewHotReloadApp

packages/node/src/dev/nodeAppHotReload.ts:18–22  ·  view source on GitHub ↗
(app: NodeAppHotReloadTargets<S>)

Source from the content-addressed store, hash-verified

16type NodeAppHotReloadTargets<S> = Pick<App<S>, "replaceView" | "replaceRoutes">;
17
18function createViewHotReloadApp<S>(app: NodeAppHotReloadTargets<S>): Pick<App<S>, "replaceView"> {
19 return {
20 replaceView: app.replaceView.bind(app),
21 };
22}
23
24function createRoutesHotReloadApp<S>(
25 app: NodeAppHotReloadTargets<S>,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected