From 07e2b13a77424bb5d03ce3bf1346d111d90de6ca Mon Sep 17 00:00:00 2001 From: Rishi Balakrishnan Date: Wed, 26 Aug 2026 23:07:58 -0400 Subject: [PATCH] fix(feeds): keep pinned feed data across reorder key changes --- src/state/queries/feed.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/state/queries/feed.ts b/src/state/queries/feed.ts index f016461b3..2fbda27c4 100644 --- a/src/state/queries/feed.ts +++ b/src/state/queries/feed.ts @@ -621,6 +621,10 @@ export function usePinnedFeedsInfos() { gcTime: GCTIME.INFINITY, staleTime: STALE.INFINITY, enabled: !isLoadingPrefs, + // The key contains the pinned URIs in order, so reordering produces a cold + // key. Without this the screen falls back to its full-screen spinner on + // every drag-reorder commit. + placeholderData: keepPreviousData, select: injectCommunity, queryFn: async () => { if (!hasSession) { -- knotmirror 0.0.1