forked from pybricks/pybricks-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathredux.ts
More file actions
23 lines (21 loc) · 702 Bytes
/
redux.ts
File metadata and controls
23 lines (21 loc) · 702 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-License-Identifier: MIT
// Copyright (c) 2023 The Pybricks Authors
import type { SerializableStateInvariantMiddlewareOptions } from '@reduxjs/toolkit';
export const serializableCheck: SerializableStateInvariantMiddlewareOptions = {
ignoredActionPaths: [
// copy of defaults
'meta.arg',
'meta.baseQueryMeta',
// monoco view state has class-based object but is technically serializable
'viewState.viewState.firstPosition',
// contain ArrayBuffer, Blob or DataView
'data',
'file',
'firmwareZip',
'payload',
'value',
// Error is not serializable
'error',
'props.error',
],
};