@resourge/react-fetch
Version:
[](LICENSE)
27 lines (23 loc) • 552 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 { 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