Files
pybricks-code/src/redux.ts
T
David Lechner 70bedecb83 firmware: implement EV3 official firmware restore
Basic support for restoring the official EV3 firmware. Is missing a video
and needs a bunch of helpful error messages, but basic functionality
is working.
2025-08-09 21:51:47 -05:00

25 lines
727 B
TypeScript

// SPDX-License-Identifier: MIT
// Copyright (c) 2023-2025 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',
'firmware',
'firmwareZip',
'payload',
'value',
// Error is not serializable
'error',
'props.error',
],
};