-
Notifications
You must be signed in to change notification settings - Fork 28
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
Provide progress parameter via fold pending parameter #20
Conversation
src/remote-data.ts
Outdated
fold<B>(initial: B, pending: B, failure: Function1<L, B>, success: Function1<A, B>): B { | ||
fold<B>( | ||
initial: B, | ||
pending: Function1<Option<RemoteProgress>, B>, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a massive breaking change. Would foldL
be enough for you?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure I can split the changes and provide the breaking change in a separate pull request?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well the problem is actually deeper. If we start processing pending
s with functions then we should also change pending
helper which immediately turns out to be the same as progress
. Smth one should be left.
/cc @sutarmin @OliverJAsh
This may be a single PR for the next breaking 0.4
version together with #5
@raveclassic something missing? |
@mlegenhausen sorry, slipped my mind :) |
@raveclassic thanks |
No description provided.