Skip to main content

Variable: GeoVisClickDismissContext

const GeoVisClickDismissContext: Context<(() => void) | undefined>

Defined in: react/contexts.ts:175

Dismisses the current click selection, if any — the same feature-state and null reset Escape/outside-click already trigger, exposed so custom UI (e.g. an inspector panel's own dismiss button) can stay in sync with them instead of re-implementing the reset itself.

Remarks

Default value is undefined (the "no provider" sentinel), mirroring GeoVisClickContext. Unlike that context, the function reference itself does not need distinguishing from a real value — there is no valid "no dismiss" state once inside a provider — so a plain function default would work too, but undefined keeps the two contexts symmetric.