recoil
Version:
Recoil - A state management library for React
23 lines (19 loc) • 609 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
*/
;
const React = require('react'); // FIXME T2710559282599660
const useMutableSource: Function = // flowlint-line unclear-type:off
(React: any).useMutableSource ?? (React: any).unstable_useMutableSource; // flowlint-line unclear-type:off
declare function mutableSourceExists(): boolean;
module.exports = {
mutableSourceExists,
useMutableSource
};