projects/common/interactive/optimistic/optimistic.ts
import { OptimisticState } from '@cngx/common/interactive'
State exposed by the optimistic action.
Signal
The error from the last failed action (undefined if successful).
undefined
Whether a rollback occurred on the last invocation.
CngxAsyncState
Full CngxAsyncState view of the optimistic lifecycle.
Bind to any [state] consumer to connect the feedback system. Status is 'pending' while the confirming Observable is in flight, 'success' on confirmation, 'error' on rollback.
[state]
'pending'
'success'
'error'