File size: 489 Bytes
1e92f2d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;