A React and Places walkthrough is a good place to stress cleanup as well as initialization. Any autocomplete listener or map event handler should be disposed when the component unmounts, otherwise revisiting the form can duplicate callbacks and make a location selection look nondeterministic.
We're a place where coders share, stay up-to-date and grow their careers.
Top comments (1)
A React and Places walkthrough is a good place to stress cleanup as well as initialization. Any autocomplete listener or map event handler should be disposed when the component unmounts, otherwise revisiting the form can duplicate callbacks and make a location selection look nondeterministic.