Download wp-calypso/client/state/a8c-for-agencies/init.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/a8c-for-agencies/init.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/state/a8c-for-agencies/init.js
-
curl -L -o init.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/state/a8c-for-agencies/init.js
760 Bytes
| import debugFactory from 'debug'; | |
| import agencies from 'calypso/state/a8c-for-agencies/agency/handlers'; | |
| import reducer from 'calypso/state/a8c-for-agencies/reducer'; | |
| import { mergeHandlers } from 'calypso/state/action-watchers/utils'; | |
| import { registerHandlers } from 'calypso/state/data-layer/handler-registry'; | |
| import { registerReducer } from 'calypso/state/redux-store'; | |
| const debug = debugFactory( 'a8c-for-agencies' ); | |
| const handlers = mergeHandlers( agencies ); | |
| export default function installActionHandlers() { | |
| const id = 'a8c-for-agencies'; | |
| const added = registerHandlers( id, handlers ); | |
| if ( ! added ) { | |
| debug( `Failed to add action handlers for "${ id }"` ); | |
| } | |
| } | |
| registerReducer( [ 'a8cForAgencies' ], reducer ); | |
| installActionHandlers(); | |