In lib/reactotron-redux/src/commandHandler.ts line 53, when a state.keys.request resolves to a non-object value (e.g. a primitive), the keys response sends undefined instead of an empty array:
type === "state.keys.request"
? typeof filteredObj === "object"
? Object.keys(filteredObj)
: undefined // ← should be []
: filteredObj
This causes StateKeysResponseCommand in the desktop app to crash on keys.map(). An error boundary was added in #1598 to prevent the crash, but the payload itself is still malformed per the StateKeysResponsePayload contract which defines keys: string[].
Fix: Change undefined to [].
In
lib/reactotron-redux/src/commandHandler.tsline 53, when astate.keys.requestresolves to a non-object value (e.g. a primitive), the keys response sendsundefinedinstead of an empty array:This causes
StateKeysResponseCommandin the desktop app to crash onkeys.map(). An error boundary was added in #1598 to prevent the crash, but the payload itself is still malformed per theStateKeysResponsePayloadcontract which defineskeys: string[].Fix: Change
undefinedto[].