From ffa59be219f7b947a34bbd173ecebf42c73022af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fredrik=20Adel=C3=B6w?= Date: Wed, 20 May 2026 20:24:34 +0200 Subject: [PATCH] Revert lastFetchParamsRef on failed fetch to allow retries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) Signed-off-by: Fredrik Adelöw --- plugins/catalog-react/src/hooks/useEntityListProvider.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/catalog-react/src/hooks/useEntityListProvider.tsx b/plugins/catalog-react/src/hooks/useEntityListProvider.tsx index c6a35be367..66043ad237 100644 --- a/plugins/catalog-react/src/hooks/useEntityListProvider.tsx +++ b/plugins/catalog-react/src/hooks/useEntityListProvider.tsx @@ -311,6 +311,7 @@ export const EntityListProvider = ( if (isEqual(fetchParams, lastFetchParamsRef.current)) { return; } + const prevFetchParams = lastFetchParamsRef.current; lastFetchParamsRef.current = fetchParams; const gen = ++fetchGenRef.current; @@ -324,6 +325,7 @@ export const EntityListProvider = ( } } catch (e) { if (gen === fetchGenRef.current) { + lastFetchParamsRef.current = prevFetchParams; setError(e as Error); } } finally {