dispatch

void dispatch(

  1. TAction action
)

Dispatches action and triggers state changes.

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

Implementation

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