Skip to content

Commit

Permalink
Merge pull request #5709 from matuzalemsteles/LPS-200526
Browse files Browse the repository at this point in the history
fix(@clayui/core): fixes error when cleaning up the collection for explicitly nested collections
  • Loading branch information
matuzalemsteles authored Nov 1, 2023
2 parents 52b27ce + e0714d1 commit 2a46962
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/clay-core/src/collection/useCollection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -414,9 +414,9 @@ export function useCollection<
// there are nested collections.
useEffect(
() => () => {
cleanUp();

if (forceUpdate) {
cleanUp();

forceUpdate(null);
}
},
Expand Down

0 comments on commit 2a46962

Please sign in to comment.