1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

added flow loader to global loader

This commit is contained in:
Fedor Katurov 2022-01-04 16:08:08 +07:00
parent 7dfa6f89c7
commit 6e89271ea9

View file

@ -1,9 +1,12 @@
import { useEffect } from 'react';
import { useFlowStore } from '~/store/flow/useFlowStore';
import { hideLoader } from '~/utils/dom/hideLoader';
import { useFlowLoader } from '~/hooks/flow/useFlowLoader';
/** simply waits for all data to settle and then show the app */
export const useGlobalLoader = () => {
useFlowLoader();
const flow = useFlowStore();
useEffect(() => {