Files
pybricks-code/src/service-worker/actions.ts
T
David Lechner 1469d2146e app: rework service worker registration
- registration is moved from top-level index to app/sagas.
- mock implementation is provided for tests
- actions are renamed to include "app" prefix
- actions are changed to not use non-serializable arguments
- reducers are changed to not use non-serializable state
2022-03-09 15:48:30 -06:00

13 lines
346 B
TypeScript

// SPDX-License-Identifier: MIT
// Copyright (c) 2020-2022 The Pybricks Authors
import { createAction } from '../actions';
export const serviceWorkerDidUpdate = createAction(() => ({
type: 'serviceWorker.action.didUpdate',
}));
export const serviceWorkerDidSucceed = createAction(() => ({
type: 'serviceWorker.action.didSucceed',
}));