MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / triggerHotUpdate

Function triggerHotUpdate

packages/ui-default/backendlib/builder.ts:172–175  ·  view source on GitHub ↗
(path?: string)

Source from the content-addressed store, hash-verified

170 ctx.on('app/started', buildUI);
171 const debouncedBuildUI = ctx.debounce(buildUI, 2000);
172 const triggerHotUpdate = (path?: string) => {
173 if (path && !path.includes('/ui-default/') && !path.includes('/public/') && !path.includes('/frontend/')) return;
174 debouncedBuildUI();
175 };
176 ctx.on('system/setting', () => triggerHotUpdate());
177 ctx.on('system/setting-loaded', () => triggerHotUpdate());
178 ctx.on('app/watch/change', triggerHotUpdate);

Callers 1

applyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected