fold
fold<
E,A,B>(onFailure,onNotAsked,onLoading,onSuccess): (data) =>B
Defined in: Core/RemoteData.ts:153
Extracts the value from a RemoteData by providing handlers for all four cases.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”onFailure
Section titled “onFailure”(e) => B
onNotAsked
Section titled “onNotAsked”() => B
onLoading
Section titled “onLoading”() => B
onSuccess
Section titled “onSuccess”(a) => B
Returns
Section titled “Returns”(data) => B