endreymarcell / effin-redux

Extend redux-toolkit with effects and more.
https://endreymarcell.github.io/effin-redux/
MIT License
0 stars 0 forks source link

Mismatch between `thunkAPI.getState()` return type and returned object #2

Closed endreymarcell closed 1 year ago

endreymarcell commented 1 year ago

The type says we're returning the slice's state, but in reality, we're getting the entire app state.

  1. Decide which behavior is correct
  2. Update either the type or the implementation
endreymarcell commented 1 year ago

Oh no, I was just using it incorrectly (createEffectInputs() has to be passed to app state, not the slice state, fixed in 67d2209). Never mind.