recoil
Version:
Recoil - A state management library for React
20 lines (18 loc) • 679 B
Flow
/**
* 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
*/
;
import type { RetentionZone } from './Recoil_RetentionZone'; // This is a separate module to prevent an import cycle.
// Options for how an atom can be retained:
export type RetainedBy = 'components' // only retained directly by components
| 'recoilRoot' // lives for the lifetime of the root
| RetentionZone // retained whenever this zone or these zones are retained
| Array<RetentionZone>;
module.exports = undefined;