Skip to content

Commit bb070af

Browse files
committed
fix: add some temp logging
1 parent 9504784 commit bb070af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/useElmish.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ function useElmish<TProps, TModel, TMessage extends Message>({
9595
console.log("redux dev tools:", devTools.current);
9696

9797
reduxUnsubscribe = devTools.current.subscribe<TModel>((message) => {
98+
// biome-ignore lint/suspicious/noConsole: <explanation>
99+
console.log("redux dev tools message:", message);
100+
98101
if (message.type === "DISPATCH" && message.payload.type === "JUMP_TO_ACTION") {
99102
setModel(message.state);
100103
}
@@ -202,6 +205,9 @@ function useElmish<TProps, TModel, TMessage extends Message>({
202205
if (modelHasChanged(currentModel, { ...deferredModel, ...newModel })) {
203206
currentModel = { ...currentModel, ...deferredModel, ...newModel };
204207

208+
// biome-ignore lint/suspicious/noConsole: <explanation>
209+
console.log("redux currentModel:", currentModel);
210+
205211
devTools.current?.send(nextMsg.name, currentModel);
206212

207213
modified = true;

0 commit comments

Comments
 (0)