Skip to content

Autocomplete new session token are not going though generated new token #245

Description

@FaisalMahamudCS

Please reopen the issue .it is still there .i set session token true still session token not going
const getPlaceDetails = (placeId) => { placesService?.getDetails( { placeId: placeId, fields: ["name", "formatted_address", "geometry"], sessionToken: sessionToken, }, (place, status) => { if (status === window.google.maps.places.PlacesServiceStatus.OK) { console.log(place); } } ); const token = new window.google.maps.places.AutocompleteSessionToken(); setSessionToken(token); refreshSessionToken(); }; console.log("session",sessionToken)

const {
    placePredictions,
    getPlacePredictions,
    isPlacePredictionsLoading,
    placesService,
    autocompleteSessionToken,
    refreshSessionToken,

} = useGoogle({
    apiKey: process.env.NEXT_PUBLIC_GOOGLE_MAPS_API_KEY,
    sessionToken: true,

});

const [value, setValue] = useState("");

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions