UNPKG

recoil

Version:

Recoil - A state management library for React

17 lines (15 loc) 511 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. * * @emails oncall+recoil * @flow strict * @format */ 'use strict'; import type { CacheImplementation } from 'Recoil_Cache'; // cache implementation that only stores the most recent entry // based on key reference equality declare function cacheMostRecent<T>(): CacheImplementation<T>; module.exports = cacheMostRecent;