Skip to content

Commit

Permalink
remove unused
Browse files Browse the repository at this point in the history
  • Loading branch information
dai-shi committed Jan 10, 2024
1 parent 480a053 commit 96f2fb0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/atomWithCache.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ export function atomWithCache<Value>(
const is = options?.areEqual || Object.is;
// this cache is common across Provider components
const cache: [CreatedAt, AnyAtomValue, Map<AnyAtom, AnyAtomValue>][] = [];
const writeGetterAtom = atom<[Getter] | null>(null);
if (process.env.NODE_ENV !== 'production') {
writeGetterAtom.debugPrivate = true;
}

const baseAtom: WritableAtom<Value, [AnyAtom], AnyAtomValue> = atom(
(get, { setSelf: writeGetter, ...opts }) => {
Expand Down

0 comments on commit 96f2fb0

Please sign in to comment.