UNPKG

piral-debug-utils

Version:

Utilities for debugging Piral instances.

14 lines 356 B
export const debugRouteCache = { active: 0, paths: [], }; export function freezeRouteRefresh() { debugRouteCache.active++; return () => { debugRouteCache.active--; if (!debugRouteCache.active) { window.dispatchEvent(new CustomEvent('pilets-reloaded')); } }; } //# sourceMappingURL=routeRefresh.js.map