How to Call Hooks in sequence way

I'm utilizing Google Maps Address AutoComplete and I have two hooks. The first hook needs to work when the other hook is complete.
import { useJsApiLoader } from "@react-google-maps/api";
import usePlacesAutocomplete from "use-places-autocomplete";

const { isLoaded } = useJsApiLoader({ libraries, googleMapsApiKey });
const { ready, value, suggestions, setValue } = usePlacesAutocomplete();
import { useJsApiLoader } from "@react-google-maps/api";
import usePlacesAutocomplete from "use-places-autocomplete";

const { isLoaded } = useJsApiLoader({ libraries, googleMapsApiKey });
const { ready, value, suggestions, setValue } = usePlacesAutocomplete();
2 Replies
Matvey
Matvey6mo ago
Create a child component and call the second hook there
TheSwordBreaker
TheSwordBreakerOP6mo ago
is it a write way i mean correct option
Want results from more Discord servers?
Add your server