# StoredHoverMixin

Auto-generated from the @jbrowse/mobx-state-tree model in the source. See the [developer guide](https://jbrowse.org/jb2/docs/developer_guide/) for concepts. Built into JBrowse core. [View source](https://github.com/GMOD/jbrowse-components/blob/main/packages/display-kit/src/StoredHoverMixin.ts).

A stored hover. The hit type, as the type parameter. Brings the `hoveredFeature` getter `BaseDisplay` declares as a hook, `setHoveredFeature`, and the `clearHoveredFeature` the foundations' viewport-change reaction calls

For a display whose hover is a hit it stores from the pointer handler rather
than one it derives from an id index: the volatile, the getter that fills
`BaseDisplay`'s `hoveredFeature` hook (declared there as a computed, so a
volatile cannot take the name directly), the setter, and the clear. Compose
it after `BaseDisplay` so the typed getter wins.

`sameHit` is the identity a display's pointer handler resolves fresh on every
move: a display whose hit is a new object per frame names the fields that
make two of them one hover, so a mouse moving inside one block writes
nothing and invalidates no observer.

## Volatiles

| Member | Description |
| --- | --- |
| **storedHoveredFeature**<br><code>T &#124; undefined</code> |  |

## Getters

| Member | Description |
| --- | --- |
| **hoveredFeature**<br><code>T &#124; undefined</code> |  |

## Actions

| Member | Description |
| --- | --- |
| **setHoveredFeature**<br><code>(hit?: T &#124; undefined) =&gt; void</code> |  |
| **clearHoveredFeature**<br><code>() =&gt; void</code> |  |

