state Property Readonly

The signal state that tracks the status of an asynchronous action, including counters for successes and failures, as well as flags indicating whether the action is in progress, has completed successfully, or has failed

API

readonly state: SignalStateType<AsyncData>;

Example

import {asyncSignalGroup} from '@bitfiber/ng/rx';
 
// Creates an asynchronous group
const group = asyncSignalGroup<number, string[], Error>(({state}) => {
  state
    // Performs a tap callback each time the request state changes
    .tap(req => console.log(req.inProgress));
});