fold
fold<
E,A,B>(onNotAsked,onLoading,onFailure,onSuccess): (data) =>B
Defined in: Core/RemoteData.ts:165
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”onNotAsked
Section titled “onNotAsked”() => B
onLoading
Section titled “onLoading”() => B
onFailure
Section titled “onFailure”(e) => B
onSuccess
Section titled “onSuccess”(a) => B
Returns
Section titled “Returns”(
data):B
Parameters
Section titled “Parameters”RemoteData<E, A>
Returns
Section titled “Returns”B