Skip to content

Commit

Permalink
Update family.mdx grammar (#2762)
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenbry authored Oct 6, 2024
1 parent 37f5c09 commit f51553d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/utilities/family.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ This is crucial if you use infinite number of params.
There are two ways to remove params.

- `myFamily.remove(param)` allows you to remove a specific param.
- `myFamily.setShouldRemove(shouldRemove)` is to register `shouldRemove` function which runs immediately **and** when you are to get an atom from a cache.
- `myFamily.setShouldRemove(shouldRemove)` is to register `shouldRemove` function which runs immediately **and** when you are about to get an atom from a cache.
- shouldRemove is a function that takes two arguments `createdAt` in milliseconds and `param`, and returns a boolean value.
- setting `null` will remove the previously registered function.

Expand Down

0 comments on commit f51553d

Please sign in to comment.