We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The map is initialized via useEffect, but there is no cleanup function in the example code. Am I missing something?
The text was updated successfully, but these errors were encountered:
export const Map = ({ center, zoom, onLoad }) => { const ref = useRef() const callback = status => { if (status === Status.SUCCESS) { const map = new window.google.maps.Map(ref.current, { center, zoom, }) onLoad && onLoad(map) } } return ( <> <MapContainer ref={ref} /> <Wrapper apiKey={googleMapsKey} callback={callback}></Wrapper> </> ) }
Sorry, something went wrong.
wangela
No branches or pull requests
The map is initialized via useEffect, but there is no cleanup function in the example code. Am I missing something?
The text was updated successfully, but these errors were encountered: