Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function KeepFresh(
options: VariableOptions &
Pick, 'pollInterval'>,
) {
useIdleCallback((useKeepFresh as any)(options));
return null;
}
function Preload(options: PreloadOptions) {
useIdleCallback(usePreload(options));
return null;
}
function Prefetch(options: VariableOptions) {
useIdleCallback((usePrefetch as any)(options));
return null;
}
function Preload() {
const preload = usePreload();
useIdleCallback(preload);
return null;
}
function Preload() {
useIdleCallback(usePreload());
return null;
}
function KeepFresh(options: KeepFreshOptions) {
useIdleCallback(useKeepFresh(options));
return null;
}