@shopify/polaris
Version:
Shopify’s admin product component library
23 lines (18 loc) • 469 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
var React = require('react');
var hooks = require('../../utilities/frame/hooks.js');
const Loading = /*#__PURE__*/React.memo(function Loading() {
const {
startLoading,
stopLoading
} = hooks.useFrame();
React.useEffect(() => {
startLoading();
return () => {
stopLoading();
};
}, [startLoading, stopLoading]);
return null;
});
exports.Loading = Loading;