Files
ncd-fe/app/soapbox/actions/sw.ts
2022-06-24 11:52:57 -05:00

16 lines
353 B
TypeScript

import type { AnyAction } from 'redux';
/** Sets the ServiceWorker updating state. */
const SW_UPDATING = 'SW_UPDATING';
/** Dispatch when the ServiceWorker is being updated to display a loading screen. */
const setSwUpdating = (isUpdating: boolean): AnyAction => ({
type: SW_UPDATING,
isUpdating,
});
export {
SW_UPDATING,
setSwUpdating,
};