Skip to content

Commit f08d3a8

Browse files
committed
fix: use serializer for redux state
1 parent e598481 commit f08d3a8

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/reduxDevTools.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ interface ReduxDevToolsExtension {
55

66
interface ReduxOptions {
77
name?: string;
8+
serialize?: {
9+
options?: boolean;
10+
};
811
}
912

1013
interface ReduxDevTools {

src/useElmish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function useElmish<TProps, TModel, TMessage extends Message>({
8989

9090
if (Services.enableDevTools === true && isReduxDevToolsEnabled(window)) {
9191
// eslint-disable-next-line no-underscore-dangle
92-
devTools.current = window.__REDUX_DEVTOOLS_EXTENSION__.connect({ name });
92+
devTools.current = window.__REDUX_DEVTOOLS_EXTENSION__.connect({ name, serialize: { options: true } });
9393

9494
// biome-ignore lint/suspicious/noConsole: <explanation>
9595
console.log("redux dev tools:", devTools.current);

0 commit comments

Comments
 (0)