Urara-Blog/node_modules/.pnpm-store/v3/files/87/67c863c2b92fb62043db7a5d61b4585e1a3605ab0ada47f5baffb0f68f5f9199d037e6049eb4f133211109d3bc5c536849e5814cda003a80fa6545d729ef15
2022-08-14 01:14:53 +08:00

16 lines
347 B
Text

// src/client/dev/preact.ts
import { useState } from "preact/hooks";
function useRegisterSW(_options = {}) {
const needRefresh = useState(false);
const offlineReady = useState(false);
const updateServiceWorker = (_reloadPage) => {
};
return {
needRefresh,
offlineReady,
updateServiceWorker
};
}
export {
useRegisterSW
};