Skip to content

useDispatch

Function: useDispatch()

taipy-gui JS module APIDocs


taipy-gui JS module API / useDispatch

useDispatch(): Dispatch\<Action>

A React hook that returns the dispatch function.

The dispatch function allows to send Actions to the Store and initiate backend\ communications.

Returns

Dispatch\<Action>

The dispatch function.