match
match<
E,A,B>(cases): (data) =>B
Defined in: Core/RemoteData.ts:200
Pattern matches on a RemoteData, returning the result of the matching case.
Type Parameters
Section titled “Type Parameters”E
A
B
Parameters
Section titled “Parameters”failure
Section titled “failure”(e) => B
loading
Section titled “loading”() => B
notAsked
Section titled “notAsked”() => B
success
Section titled “success”(a) => B
Returns
Section titled “Returns”(
data):B
Parameters
Section titled “Parameters”RemoteData<E, A>
Returns
Section titled “Returns”B