SortActions

This is for:

Developer
Note

This component was introduced in version 2.74.0.

The sort action creators.

Loader Function

loadSortActions

Loads the commerce sort reducer and returns the available sort action creators.

Parameters

  • engine: CommerceEngine

    The commerce engine.

Returns SortActionCreators: The sort action creators.

SortActionCreators

applySort

Applies a sort criterion.

Parameters

  • payload: SortCriterion

    The payload of the action.

Returns PayloadAction<ApplySortPayload>: A dispatchable action.