@resourge/react-fetch
Version:
[](LICENSE)
18 lines (15 loc) • 514 B
JavaScript
/**
* react-fetch v1.43.1
*
* Copyright (c) resourge.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/
import { useSyncExternalStore } from 'react';
import { OnlineSubscribe, OnlineGetSnapshot } from '../utils/onlineUtils/OnlineUtils';
const useIsOnline = () => useSyncExternalStore(OnlineSubscribe, OnlineGetSnapshot, OnlineGetSnapshot);
export { useIsOnline };
//# sourceMappingURL=useIsOnline.js.map