You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 text was updated successfully, but these errors were encountered:
jouderianjr
changed the title
Some sort of withDefaultForError
Some sort of withDefault for the failure state
Apr 8, 2020
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.The text was updated successfully, but these errors were encountered: