tomchentw / react-google-maps

React.js Google Maps integration component
https://tomchentw.github.io/react-google-maps/
MIT License
4.62k stars 939 forks source link

How to stop Autocomplete from re-rendering input fields but render everything else? #1021

Open MariuzM opened 4 years ago

MariuzM commented 4 years ago

So every time i chose something on the list it removes it. How can i stop this and only re-render the map but not the input field?
Example code: https://codesandbox.io/s/suspicious-ride-5ht4o

JustFly1984 commented 4 years ago

@MariuzM I had made major refactoring on your example, and using React hooks and components from `@react-google-maps/api' instead of 'react-google-maps'

this is my version. https://codesandbox.io/s/interesting-bird-t26qb

Enjoy.

Please use https://github.com/JustFly1984/react-google-maps-api/issues/318