I have three components, each using the same two queries (custom hooks):
const {
data: survey,
isLoading: isSurveyLoading,
isError: isSurveyError,
} = useSurveyInfo(id);
const {
data: responses,
isLoading: isResponsesLoading,
isError: isResponsesError,
} = useResponses(id);
In each of these 3 components, I'm showing a loading spinner in the case of isLoading

How do I show one loading spinner for all three components?
I know I could use the queries in the parent component and pass props to children. But to eliminate prop drilling, I am calling each query in the child component (which seems to be best practice).
Is there a way to show one loading spinner when any of the 3 child components is loading?