diff --git a/src/vanilla/utils/atomFamily.ts b/src/vanilla/utils/atomFamily.ts index 81b0098613..5ff4fc104d 100644 --- a/src/vanilla/utils/atomFamily.ts +++ b/src/vanilla/utils/atomFamily.ts @@ -47,6 +47,10 @@ export function atomFamily>( return newAtom } + createAtom.getParams = () => { + return Array.from(atoms.keys()) + } + createAtom.remove = (param: Param) => { if (areEqual === undefined) { atoms.delete(param)