---
url: https://lit-ui-router.dev/reference/lit-ui-router-ssr/client/type-aliases/AdoptUiViewContext.md
---
[lit-ui-router-ssr](../../index.md) / [client](../index.md) / AdoptUiViewContext

# Type Alias: AdoptUiViewContext

```ts
type AdoptUiViewContext = Context<AdoptUiViewContextKey, (view) => void>;
```

Defined in: [packages/lit-ui-router-ssr/src/adopt-context.ts:31](https://github.com/simshanith/lit-ui-router/blob/18dc41814e4c4326251623a15a8b3aaefcf54372/packages/lit-ui-router-ssr/src/adopt-context.ts#L31)

The adopt-view context key's type — [AdoptUiViewContextKey](../interfaces/AdoptUiViewContextKey.md) branded
with the adopter function, so `@consume({ context: adoptUiViewContext })`
infers it.
