mirror of
https://github.com/muerwre/vault-frontend.git
synced 2025-04-25 12:56:41 +07:00
fixed inputs appearance and global loader
This commit is contained in:
parent
811e14fd4c
commit
a068f56abf
3 changed files with 14 additions and 15 deletions
|
@ -5,15 +5,15 @@ import { useFlowLoader } from '~/hooks/flow/useFlowLoader';
|
|||
|
||||
/** simply waits for all data to settle and then show the app */
|
||||
export const useGlobalLoader = () => {
|
||||
useFlowLoader();
|
||||
|
||||
const { getInitialNodes } = useFlowLoader();
|
||||
const flow = useFlowStore();
|
||||
|
||||
useEffect(() => {
|
||||
if (!flow.isRefreshed) {
|
||||
void getInitialNodes();
|
||||
return;
|
||||
}
|
||||
|
||||
hideLoader();
|
||||
}, [flow.isRefreshed]);
|
||||
}, [flow.isRefreshed, getInitialNodes]);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue