---
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/6e47ef8d8a4b24e99c074fb5c8c9cfaddfdb36a4/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.
