From f51553dedd43882391152f06fccde3d5fe655cb9 Mon Sep 17 00:00:00 2001 From: Bryan Nguyen Date: Sun, 6 Oct 2024 17:45:13 -0400 Subject: [PATCH] Update family.mdx grammar (#2762) --- docs/utilities/family.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/utilities/family.mdx b/docs/utilities/family.mdx index 7f92bdf017..b6894d45df 100644 --- a/docs/utilities/family.mdx +++ b/docs/utilities/family.mdx @@ -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.