Download wp-calypso/client/components/data/query-domain-info/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 369 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/data/query-domain-info/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/data/query-domain-info/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/data/query-domain-info/index.js
369 Bytes
| import { useEffect } from 'react'; | |
| import { useDispatch } from 'react-redux'; | |
| import { fetchWapiDomainInfo } from 'calypso/state/domains/transfer/actions'; | |
| export default function QueryDomainInfo( { domainName } ) { | |
| const dispatch = useDispatch(); | |
| useEffect( () => { | |
| dispatch( fetchWapiDomainInfo( domainName ) ); | |
| }, [ dispatch, domainName ] ); | |
| return null; | |
| } | |