MCPcopy Index your code
hub / github.com/nodegui/react-nodegui / hot

Function hot

src/development/hot-reload.ts:7–14  ·  view source on GitHub ↗
(Component: React.ComponentType)

Source from the content-addressed store, hash-verified

5export let appProxy: ReactProxyComponent; // need to export it so that it stays without being gc'd
6
7export function hot(Component: React.ComponentType): React.ComponentType {
8 if (appProxy) {
9 appProxy.update(Component);
10 } else {
11 appProxy = createProxy(Component);
12 }
13 return appProxy.get();
14}

Callers

nothing calls this directly

Calls 2

updateMethod · 0.80
getMethod · 0.80

Tested by

no test coverage detected