mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-15 11:04:49 +00:00
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.
25 lines
727 B
TypeScript
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',
|
|
],
|
|
};
|