about summary refs log tree commit diff
path: root/src/state/queries/feed.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-11-28 12:50:41 -0600
committerGitHub <noreply@github.com>2023-11-28 12:50:41 -0600
commitbb9d340d42420005cf4b0a6aa1ff5be4e0ef6bfa (patch)
tree26220f706431d742983de2a5fc547ba72227f907 /src/state/queries/feed.ts
parent0b2c85b967ea7a2dd18261773449260b80004423 (diff)
downloadvoidsky-bb9d340d42420005cf4b0a6aa1ff5be4e0ef6bfa.tar.zst
Fix pinned feeds mutation issue (#2016)
Diffstat (limited to 'src/state/queries/feed.ts')
-rw-r--r--src/state/queries/feed.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/state/queries/feed.ts b/src/state/queries/feed.ts
index 693a7d53d..b5d491a5c 100644
--- a/src/state/queries/feed.ts
+++ b/src/state/queries/feed.ts
@@ -252,7 +252,6 @@ export function usePinnedFeedsInfos(): FeedSourceInfo[] {
     FOLLOWING_FEED_STUB,
   ])
   const {data: preferences} = usePreferencesQuery()
-  const pinnedFeedsKey = JSON.stringify(preferences?.feeds?.pinned)
 
   React.useEffect(() => {
     if (!preferences?.feeds?.pinned) return
@@ -299,13 +298,7 @@ export function usePinnedFeedsInfos(): FeedSourceInfo[] {
     }
 
     fetchFeedInfo()
-  }, [
-    queryClient,
-    setTabs,
-    preferences?.feeds?.pinned,
-    // ensure we react to re-ordering
-    pinnedFeedsKey,
-  ])
+  }, [queryClient, setTabs, preferences?.feeds?.pinned])
 
   return tabs
 }