From 96f2fb028a59184f7b41a60f4add86a69b89d2f6 Mon Sep 17 00:00:00 2001 From: daishi Date: Wed, 10 Jan 2024 09:55:13 +0900 Subject: [PATCH] remove unused --- src/atomWithCache.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/atomWithCache.ts b/src/atomWithCache.ts index 9ea988d..501b408 100644 --- a/src/atomWithCache.ts +++ b/src/atomWithCache.ts @@ -24,10 +24,6 @@ export function atomWithCache( const is = options?.areEqual || Object.is; // this cache is common across Provider components const cache: [CreatedAt, AnyAtomValue, Map][] = []; - const writeGetterAtom = atom<[Getter] | null>(null); - if (process.env.NODE_ENV !== 'production') { - writeGetterAtom.debugPrivate = true; - } const baseAtom: WritableAtom = atom( (get, { setSelf: writeGetter, ...opts }) => {