UNPKG

@resourge/react-fetch

Version:

[![License](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

27 lines (23 loc) 552 B
/** * react-fetch v1.41.3 * * 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 { useEffect } from 'react'; import { LoadingService } from '@resourge/http-service'; const LoadingFallback = () => { useEffect(() => { LoadingService.show(); return () => { LoadingService.hide(); }; }, []); return null; }; export { LoadingFallback as default }; //# sourceMappingURL=LoadingFallback.js.map