260303_01_ENH: TanStack Query 적용
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
|
||||
import { atom } from "jotai";
|
||||
|
||||
/**
|
||||
* 전역 로딩 상태
|
||||
*/
|
||||
export const loadingAtom = atom(false);
|
||||
export const manualLoadingAtom = atom(false);
|
||||
export const queryLoadingAtom = atom(false);
|
||||
|
||||
// 기존 LoadingOverlay가 보는 값: manual || query
|
||||
export const loadingAtom = atom((get) => get(manualLoadingAtom) || get(queryLoadingAtom));
|
||||
Reference in New Issue
Block a user