The combo of RemoteData.map plus RemoteData.map is really common and useful. I just faced a situation that I would want to do the same, but caring about the Failure instead of Success case.
I have some typed error that I decode from the request and that I map to the Failure, then having the combo RemoteData.map plus RemoteData.withDefaultForError (something like that with a better name) It would be really nice. Do you think it worth adding to the library? I can handle with this modification.
The combo of
RemoteData.map
plusRemoteData.map
is really common and useful. I just faced a situation that I would want to do the same, but caring about the Failure instead of Success case.I have some typed error that I decode from the request and that I map to the Failure, then having the combo
RemoteData.map
plusRemoteData.withDefaultForError
(something like that with a better name) It would be really nice. Do you think it worth adding to the library? I can handle with this modification.