Skip to content

tap

tap<E, A>(f): (data) => RemoteData<E, A>

Defined in: Core/RemoteData.ts:243

Executes a side effect on the success value without changing the RemoteData.

E

A

(a) => void

(data): RemoteData<E, A>

RemoteData<E, A>

RemoteData<E, A>

pipe(
  RemoteData.of(5),
  RemoteData.tap(n => console.log("Value:", n)),
  RemoteData.map(n => n * 2)
);