ErrorPro / react-google-autocomplete

React components for google places API.
MIT License
473 stars 114 forks source link

usePlacesWidget freezes app with React 18 & strict mode #174

Closed cesargutierrezo closed 2 years ago

cesargutierrezo commented 2 years ago

After upgrading my webapp to React 18, mounting a component with the usePlacesWidget hook freezes the whole app. This only happens when running the app with Strict Mode on. Running the production build works fine as strict mode doesn't apply in this case

cesargutierrezo commented 2 years ago

Closing as v2.7.0 works fine