diff --git a/src/components/Map/usePostsEngine.js b/src/components/Map/usePostsEngine.js index f614624..fc8a685 100644 --- a/src/components/Map/usePostsEngine.js +++ b/src/components/Map/usePostsEngine.js @@ -1077,8 +1077,9 @@ export function usePostsEngine({ } if (!resolvedView?.center) return; } - if ((searchQuery || "").trim()) { - console.log('[usePostsEngine] SKIP: searchQuery active:', searchQuery); + // Skip if search is active - check the ref, not the prop (which may be stale in closure) + if (searchResultsRef.current) { + console.log('[usePostsEngine] SKIP: search results active'); return; }