> ## Documentation Index
> Fetch the complete documentation index at: https://docs.tappify.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# useTapContext

> Returns what the surface handed the mount: the payload Expand carried in, or the row behind a row action.

```ts theme={null}
function useTapContext(): Record<string, unknown>;
```

Returns what the surface handed the mount: the payload Expand carried in, or
the row behind a row action.

## Returns

`Record`\<`string`, `unknown`>

## Remarks

Re-renders when the host hands the mount a new context. A row action reads the
row from its own `row` prop as well; this hook is the same value for a
component further down the tree. Throws `TAP_OUTSIDE_HOST` outside a mount.

## Example

```tsx theme={null}
import { useTapContext } from '@tappify/extension-sdk';

function ContextNote() {
  const context = useTapContext();
  const reviewId = context.reviewId;
  return <span>{typeof reviewId === 'string' ? reviewId : 'No review'}</span>;
}
```
