DaffOperationStateSelectors

Selectors for an operation state.

Properties

Name Type Description
selectLoadingState MemoizedSelector<TRootState, TState['daffState']> Selects the loading state enum.
selectLoading MemoizedSelector<TRootState, boolean> Selects whether the operation state is in any of the loading states.
selectResolving MemoizedSelector<TRootState, boolean> Selects whether the operation state is resolving.
selectMutating MemoizedSelector<TRootState, boolean> Selects whether the operation state is mutating.
selectErrors MemoizedSelector<TRootState, TState['daffErrors']> Selects the errors in the operation state.
selectHasErrors MemoizedSelector<TRootState, boolean> Selects whether the operation state has any errors. If so, it should be considered to be in an "error" state.
Graycore, LLC © 2018 - 2024. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.