[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

Search

title

Body

[close]

/wp-includes/js/dist/ -> data-controls.js (summary)

WordPress dependencies

File Size: 217 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 4 functions

  apiFetch()
  build_module_select()
  syncSelect()
  dispatch()

Functions
Functions that are not part of a class:

apiFetch(request)   X-Ref
Dispatches a control action for triggering an api fetch call.

param: {Object} request Arguments for the fetch request.
return: {Object} The control descriptor.

build_module_select(storeNameOrDescriptor, selectorName, ...args)   X-Ref
Control for resolving a selector in a registered data store.
Alias for the `resolveSelect` built-in control in the `@wordpress/data` package.

param: storeNameOrDescriptor The store object or identifier.
param: selectorName          The selector name.
param: args                  Arguments passed without change to the `@wordpress/data` control.

syncSelect(storeNameOrDescriptor, selectorName, ...args)   X-Ref
Control for calling a selector in a registered data store.
Alias for the `select` built-in control in the `@wordpress/data` package.

param: storeNameOrDescriptor The store object or identifier.
param: selectorName          The selector name.
param: args                  Arguments passed without change to the `@wordpress/data` control.

dispatch(storeNameOrDescriptor, actionName, ...args)   X-Ref
Control for dispatching an action in a registered data store.
Alias for the `dispatch` control in the `@wordpress/data` package.

param: storeNameOrDescriptor The store object or identifier.
param: actionName            The action name.
param: args                  Arguments passed without change to the `@wordpress/data` control.



Generated : Fri Apr 19 08:20:01 2024 Cross-referenced by PHPXref