William Persall
09/02/2021, 9:25 PMtype alias Reducer<S,A> = (S,A) -> S
When I create function that looks like fun myfun(State:SomeStateClass, action:Action):SomeStateClass
Then I get a mismatch type error on myFun when entered as below.
val store = createStore(myFun(), SomeStateClass())
is this a know issue, or is there a workaround?Greg Steckman
09/08/2021, 6:00 PMval myFun: Reducer<SomeStateClass> = { state, action -> your function definition here }
Then in the call to createStore: val store = createStore(myFun, SomeStateClass())
William Persall
09/08/2021, 6:07 PM