editor: don't put editor in redux store

The redux store should not have non-serializable objects like the editor
in it.
This commit is contained in:
David Lechner
2022-03-02 18:56:47 -06:00
parent fca7d0f253
commit 569217d5dc
21 changed files with 184 additions and 291 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
// SPDX-License-Identifier: MIT
// Copyright (c) 2020 The Pybricks Authors
// Copyright (c) 2020-2022 The Pybricks Authors
import { AnyAction } from 'redux';
import { END, MulticastChannel, Saga, Task, runSaga, stdChannel } from 'redux-saga';
import { RootState } from '../src/reducers';
import { RootSagaContext } from '../src/sagas';
type RecursivePartial<T> = {
[P in keyof T]?: RecursivePartial<T[P]>;
@@ -19,7 +20,7 @@ export class AsyncSaga {
public constructor(
saga: Saga,
state: RecursivePartial<RootState> = {},
context?: Record<string, unknown>,
context?: Partial<RootSagaContext>,
) {
this.channel = stdChannel();
this.dispatches = [];