diff options
author | vnugent <public@vaughnnugent.com> | 2024-06-05 14:44:08 -0400 |
---|---|---|
committer | vnugent <public@vaughnnugent.com> | 2024-06-05 14:44:08 -0400 |
commit | 9eed4022a79f2cba139c9f8a359bfc8c1f9c31c5 (patch) | |
tree | 5bd97ad742dddf5ee488afd2fcd314efef9cf642 /front-end/src/store/globalState.ts | |
parent | f9e2109c27af5ece546261c018d4b2781860ff1c (diff) |
ci: Stage blocking changes
Diffstat (limited to 'front-end/src/store/globalState.ts')
-rw-r--r-- | front-end/src/store/globalState.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/front-end/src/store/globalState.ts b/front-end/src/store/globalState.ts index 9e700eb..26001c7 100644 --- a/front-end/src/store/globalState.ts +++ b/front-end/src/store/globalState.ts @@ -1,5 +1,4 @@ import 'pinia' -import { shallowRef } from 'vue'; import { useAutoHeartbeat } from '@vnuge/vnlib.browser'; import { toRefs, useLocalStorage } from '@vueuse/core'; import { PiniaPluginContext, PiniaPlugin } from 'pinia' @@ -22,7 +21,7 @@ export const globalStatePlugin: PiniaPlugin = ({ store }: PiniaPluginContext) => const { ahEnabled } = toRefs(mainState) //Setup heartbeat for 5 minutes - useAutoHeartbeat(shallowRef(5 * 60 * 1000), ahEnabled) + useAutoHeartbeat(5 * 60 * 1000, ahEnabled) return{ autoHeartbeat: ahEnabled, |