Skip to content

Commit

Permalink
Fix typo - use weakset instead of set
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathis Møller committed Aug 10, 2021
1 parent f75c4df commit baece10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/useHydrateAtoms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function useHydrateAtoms(
function getHydratedSet(store: Store) {
let hydratedSet = hydratedMap.get(store)
if (!hydratedSet) {
hydratedSet = new Set()
hydratedSet = new WeakSet()
hydratedMap.set(store, hydratedSet)
}
return hydratedSet
Expand Down

0 comments on commit baece10

Please sign in to comment.