diff --git a/packages/clay-core/src/collection/useCollection.tsx b/packages/clay-core/src/collection/useCollection.tsx index 79acbb6a74..83d1fee5f9 100644 --- a/packages/clay-core/src/collection/useCollection.tsx +++ b/packages/clay-core/src/collection/useCollection.tsx @@ -414,9 +414,9 @@ export function useCollection< // there are nested collections. useEffect( () => () => { - cleanUp(); - if (forceUpdate) { + cleanUp(); + forceUpdate(null); } },