Yuriy Bogomolov

Results 12 comments of Yuriy Bogomolov

Maybe, it's possible to add `do` function to each module as a synonym for `chainFirst`? Or name it like `exec`/`effect`/`action`? I second @ryota-ka on finding `chainFirst` not being clear enough...

Thank you @gcanti for this proposal! I will play with your approach a bit and see if it suits my initial design goals. I was thinking of the following scenarios...

Another approach I was thinking of – make `Fetcher` a set of classes, each with different capabilities. Something similar to a Free monads or Scala's ZIO design. Such approach allows...

> Isn't the discardRest signature problematic? > What if I can't produce a To (say I'm fetching a User)? I though of restricting `To` to have a monoid instance, so...

@gcanti I would like to thank you once again for your feedback and suggested implementation. I played with it a little bit, and written the following: https://gist.github.com/YBogomolov/5de9290f6a7056f17a52b088ac298441 Main ideas: 1....

@gcanti it really clicks now :) I've split `extend` into two implementations: `extendWith`, which allows changing type of the result (`A => B`), and `extend`, which acts as an endomorphism...

> Isn't this map? Yep, it is. I'll add `map`/`mapLeft`/`bimap`, they will be handy. > // not interesting since can be derived from `map` and `extend` And `extend` could be...

The resulting iteration: https://gist.github.com/YBogomolov/5de9290f6a7056f17a52b088ac298441

I don't agree that `RemotePending` is the initial state. We use RemoteData in React+Redux app, and our use case is the following: 1. Initially all network-related store fields are set...

Any plans on fixing this issue? As Jest had been updated to 24.x, `ts-jest` no longer can be used with it, and the documentation suggest using `jest-runner-tsc`. However, due to...