16 lines
353 B
TypeScript
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,
|
||
|
};
|