Error while loading libraries #3292
Unanswered
FrancekDev
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Performance warning! LoadScript has been reloaded unintentionally! You should not pass
libraries
prop as new array. Please keep an array of libraries as static class property for Components and PureComponents, or just a const variable outside of component, or somewhere in config files or ENV variablesconst { isLoaded } = useJsApiLoader({ id: 'google-map-script', googleMapsApiKey: googleMapsApiKey, libraries: ['places'], });
Beta Was this translation helpful? Give feedback.
All reactions