MCPcopy
hub / github.com/facebook/react / dispatch

Function dispatch

packages/react-server/src/ReactFizzHooks.js:685–687  ·  view source on GitHub ↗
(payload: P)

Source from the content-addressed store, hash-verified

683
684 // Wrap the action so the return value is void.
685 const dispatch = (payload: P): void => {
686 boundAction(payload);
687 };
688
689 // $FlowIgnore[prop-missing]
690 if (typeof boundAction.$$FORM_ACTION === 'function') {

Callers 12

CounterFunction · 0.50
ComponentFunction · 0.50
AppFunction · 0.50
ComponentFunction · 0.50
useThunkDispatchFunction · 0.50
onUpdateFunction · 0.50
onClickFunction · 0.50
StoreProviderFunction · 0.50
AboutPageFunction · 0.50

Calls

no outgoing calls

Tested by 7

CounterFunction · 0.40
ComponentFunction · 0.40
AppFunction · 0.40
ComponentFunction · 0.40
useThunkDispatchFunction · 0.40
onUpdateFunction · 0.40
onClickFunction · 0.40