You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Was just bitten by this and it took a bit of debugging. React's own signature for the reducing function passed to useReducer is reducer(state, event), however Rum's wrapper for the hook is reversing the order of these parameters:
Was this accidental? It's unfortunate that it doesn't match the signature of the underlying React hook, but also that it doesn't match the signature of Clojure core's own reduce.
The text was updated successfully, but these errors were encountered:
Was just bitten by this and it took a bit of debugging. React's own signature for the reducing function passed to
useReducer
isreducer(state, event)
, however Rum's wrapper for the hook is reversing the order of these parameters:rum/src/rum/core.cljs
Line 528 in 75174b9
Was this accidental? It's unfortunate that it doesn't match the signature of the underlying React hook, but also that it doesn't match the signature of Clojure core's own
reduce
.The text was updated successfully, but these errors were encountered: