UNPKG

recoil

Version:

Recoil - A state management library for React

22 lines (19 loc) 572 B
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * Cache implementation with reference equality for keys * * @emails oncall+recoil * @flow strict-local * @format */ 'use strict'; import type { CacheImplementation } from './Recoil_Cache'; const { ArrayKeyedMap } = require('../adt/Recoil_ArrayKeyedMap'); declare function cacheWithReferenceEquality<T>(): CacheImplementation<T>; module.exports = cacheWithReferenceEquality;