Skip to content

Commit 8fb8d13

Browse files
fix: isLoading initial value causing data fetch to never run
ROOT CAUSE: isLoading was initialized as 'true' in store EFFECT: Guard clause (dataLoaded || isLoading) always returned true RESULT: loadData() was never called, satellites never loaded Fix: Set isLoading initial value to 'false'
1 parent e61a9b5 commit 8fb8d13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/store/useOrbitStore.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ export const useOrbitStore = create<OrbitState>()(
146146
setIsMobile: (mobile) => set({ isMobile: mobile }),
147147
activePanel: null,
148148
setActivePanel: (panel) => set({ activePanel: panel }),
149-
isLoading: true,
149+
isLoading: false, // Start as false - loadData will set to true
150150
setIsLoading: (loading) => set({ isLoading: loading }),
151151

152152
// --- Search & Filter ---

0 commit comments

Comments
 (0)