Skip to content

How to get the current value? #128

@gilml

Description

@gilml

Is there any way to keep the current value of Geocoder on the state?
For example, creating a hook like setSearchQuery(Geocoder.input.current.value) ?

This is my Geocoder:

           <Geocoder
              mapRef={mapRef}
              containerRef={geocoderContainerRef}
              mapboxApiAccessToken={token}
              onViewportChange={handleGeocoderViewportChange}
              placeholder=""
              position="top-left"
              minLength={4}
              limit={3}
              trackProximity
              marker={false}
              enableEventLogging={false}
            />

Thanks!

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