You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason coordinates prop is not populated in onChange as seen in the video. I double check the code and cannot find what is stopping it from getting the data:
Hey bro @aurora10 i can feel your pain i also got stuck on same place, to resolve this error do what i said below
const [coordinates, setCoordinates] = useState({}); // Here add coordinates of any place
for eg.
const [coordinates, setCoordinates] = useState({ lat: 0, lng: 0 });
const [bounds, setBounds] = useState(null); // Instead of null replace it by {}
for eg.
const [bounds, setBounds] = useState({});
If your error get resolved than mark this issue as resolved. @adrianhajdin
App.js component that makes Travel Advisor API call that populates the data object:
For some reason coordinates prop is not populated in onChange as seen in the video. I double check the code and cannot find what is stopping it from getting the data:
The API call returns a bunch of restaurants, so the call works. But I cannot get {coordinates} prop populated....
The text was updated successfully, but these errors were encountered: