MCPcopy
hub / github.com/adobe/react-spectrum / chain

Function chain

packages/react-aria/src/utils/chain.ts:16–24  ·  view source on GitHub ↗
(...callbacks: any[])

Source from the content-addressed store, hash-verified

14 * Calls all functions in the order they were chained with the same arguments.
15 */
16export function chain(...callbacks: any[]): (...args: any[]) => void {
17 return (...args: any[]) => {
18 for (let callback of callbacks) {
19 if (typeof callback === 'function') {
20 callback(...args);
21 }
22 }
23 };
24}

Callers 15

onKeyDownFunction · 0.90
mergePropsFunction · 0.90
useComboBoxFunction · 0.90
useSearchFieldFunction · 0.90
useGridListItemFunction · 0.90
useNumberFieldFunction · 0.90
useSelectableItemFunction · 0.90
useGridRowFunction · 0.90
preventScrollStandardFunction · 0.90
useToggleButtonFunction · 0.90
useOptionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected