Skip to content

HOVER_FEATURE_STATE_KEY

const HOVER_FEATURE_STATE_KEY: "hover" = "hover"

Defined in: packages/core/src/interactions/built-ins.ts:203

The feature-state key highlight writes.

Shared with the paint rewrite in LayerManager, which reads the same key back out via ["feature-state", ...]. These are two halves of one contract: if the written key and the read key drift apart, both sides stay individually valid — the expression still compiles, the state write still succeeds — and highlighting silently stops working. Importing one constant makes that drift impossible rather than merely tested for.