Skip to main content

useSuggestionProvider

The suggestion provider, or undefined when the host supplies none. The search pill suggests places as the person types only when it exists, so a host without one keeps submit-only search. Nothing is requested until the person has typed.

This is a function exported by @mapcairn/map, checked against version 0.2.0.

Signature​

import { useSuggestionProvider } from "@mapcairn/map";

function useSuggestionProvider(): SuggestionProvider | undefined;

Returns​

SuggestionProvider | undefined

See also​

Source: packages/map/src/services/hooks.ts:61