(path?: string)
| 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); |