react-code-dataset / wp-calypso /client /components /data /query-concierge-appointment-details /index.js
react-code-dataset / wp-calypso /client /components /data /query-concierge-appointment-details /index.js
Download wp-calypso/client/components/data/query-concierge-appointment-details/index.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 489 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/data/query-concierge-appointment-details/index.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/client/components/data/query-concierge-appointment-details/index.js
-
curl -L -o index.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/client/components/data/query-concierge-appointment-details/index.js
489 Bytes
| import { useEffect } from 'react'; | |
| import { useDispatch } from 'react-redux'; | |
| import { requestConciergeAppointmentDetails } from 'calypso/state/concierge/actions'; | |
| function QueryConciergeAppointmentDetails( { scheduleId, appointmentId } ) { | |
| const dispatch = useDispatch(); | |
| useEffect( () => { | |
| dispatch( requestConciergeAppointmentDetails( scheduleId, appointmentId ) ); | |
| }, [ dispatch, scheduleId, appointmentId ] ); | |
| return null; | |
| } | |
| export default QueryConciergeAppointmentDetails; | |