From 7e24a5cd3b394daf0c5d5ef12d04b1ec7301810e Mon Sep 17 00:00:00 2001 From: ikusteu Date: Sun, 24 Dec 2023 21:39:35 +0100 Subject: [PATCH] Small fix: don't skip range updates (this would block changing the collection path if the new and old ranges are the same) --- .../react-redux-firebase-firestore/src/thunks/subscribe.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/react-redux-firebase-firestore/src/thunks/subscribe.ts b/packages/react-redux-firebase-firestore/src/thunks/subscribe.ts index 5462371c7..6f7d90764 100644 --- a/packages/react-redux-firebase-firestore/src/thunks/subscribe.ts +++ b/packages/react-redux-firebase-firestore/src/thunks/subscribe.ts @@ -107,10 +107,6 @@ export const updateSubscription: SubscribeFunction = if (rangeInStore && rangeProperty === rangeInStore[0]) { const [, storeRangeStart, storeRangeEnd] = rangeInStore; switch (true) { - // exit early if ranges are the same - case rangeStart >= storeRangeStart && rangeEnd <= storeRangeEnd: - return; - // extend range in both directions: should happed rarely (or never) in production case rangeStart < storeRangeStart && rangeEnd > storeRangeEnd: // unsubscribe from old range