fromMaybe
fromMaybe<
E>(onNone): <A>(data) =>RemoteData<E,A>
Defined in: Core/RemoteData.ts:309
Converts a Maybe to a RemoteData. Some becomes Success, None becomes Failure using the onNone error producer.
Type Parameters
Section titled “Type Parameters”E
Parameters
Section titled “Parameters”onNone
Section titled “onNone”() => E
Returns
Section titled “Returns”<A>(data) => RemoteData<E, A>