dispatch method

void dispatch(
  1. TAction action
)

Dispatches action and triggers stage changes.

Note: The dispatch function identity is stable and will not change on re-renders.

See: reactjs.org/docs/hooks-reference.html#usereducer.

Implementation

void dispatch(TAction action) => _dispatch(action);