RootCauseunvalidated
The `counterReducer` is receiving an initial state that is a number, but the reducer logic treats `state` as an object and writes/reads `state.counter`, causing `state.counter` to be undefined and producing `NaN` (and potentially nesting like `counter.counter`).
9da64f1e-58f5-4352-aff5-62cee9477bd9
The counterReducer is receiving an initial state that is a number, but the reducer logic treats state as an object and writes/reads state.counter, causing state.counter to be undefined and producing NaN (and potentially nesting like counter.counter).