For example:
update :: Fn2 Id String (Redux.Action Action)
update = mkFn2 action
where action id title = createAction $ Update id title
clearComplete :: Fn0 (Redux.Action Action)
clearComplete = mkFn0 action
where action _ = createAction ClearComplete
Having to use uncurried functions like this stinks. Not sure how to solve without middleware, though. Curried functions essentially dispatch a function to the store instead of an action. We could probably use something like thunk to work around this, but that sounds messy and awful. There's got to be a better way.
For example:
Having to use uncurried functions like this stinks. Not sure how to solve without middleware, though. Curried functions essentially dispatch a function to the store instead of an action. We could probably use something like thunk to work around this, but that sounds messy and awful. There's got to be a better way.