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
Create a model and a store, access the model through the dispatch in the store. You will see that the arguments of the reducer are wrongly typed.
Expected behavior
The reducer to match the function used in the createModel funciton, to not require the store (since if you add it you will break the function call) and have the according type.
Screenshots
Desktop
OS: Windows, Linux
Browser (not related to browser)
Version (the last version working is 2.1.0, everything after that is broken)
Additional context
It used to work, now I'm locked in older versions because of this.
The text was updated successfully, but these errors were encountered:
Describe the bug
Since
2.1.1
, the reducers generated by rematch are wrongly typed. They ask for the last state when calling a reducer.Reproduce Link
link
To Reproduce
Create a model and a store, access the model through the dispatch in the store. You will see that the arguments of the reducer are wrongly typed.
Expected behavior
The reducer to match the function used in the createModel funciton, to not require the store (since if you add it you will break the function call) and have the according type.
Screenshots
Desktop
Additional context
It used to work, now I'm locked in older versions because of this.
The text was updated successfully, but these errors were encountered: