Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RemoteData.toResult #33

Open
andys8 opened this issue Aug 6, 2019 · 0 comments
Open

RemoteData.toResult #33

andys8 opened this issue Aug 6, 2019 · 0 comments

Comments

@andys8
Copy link

andys8 commented Aug 6, 2019

There is fromMaybe

There is toMaybe

There is fromResult

But toResult is missing.

It would make sense in my project. I'm doing some operations on data, that is initially loaded from remote. But other operations afterwards can fail, too. I would like to know the error case. Therefore Maybe is not an option. toResult would be nice.

Is it missing because it's not clear how to handle NotAsked and Loading ? It might make sense to intentionally not have it as a part of the library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant