Skip to content

Feature Request: onSuccess callback #917

@Kushagra-ag

Description

@Kushagra-ag

Is your feature request related to a problem? Please describe.
I would like the ability to be able to have a callback function if the request made by the <GooglePlacesAutocomplete /> component is successful. The component already provides onFail callback attribute but I couldn't see any onSuccess callback attribute.

I want to run some analytics logic in the success callback

Describe the solution you'd like

A onSuccess callback attribute exposed by the <GooglePlacesAutocomplete /> component which is triggered on successful request to get the place details matching the string input by the user.

Describe alternatives you've considered

Additional context

I am using version ^2.5.6

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions