The fetch example matches the flow described (and makes sense), but the first set of examples above are functions that take some arguments that return functions that take in state and return promises. I.e. they have 2 and 3 the wrong way round. Is this also valid?
Happy to PR if the addOne examples need changing, or to shut up if I've just misunderstood.
The README gives the following examples for effects:
The
fetch
example matches the flow described (and makes sense), but the first set of examples above are functions that take some arguments that return functions that take in state and return promises. I.e. they have 2 and 3 the wrong way round. Is this also valid?Happy to PR if the
addOne
examples need changing, or to shut up if I've just misunderstood.