---
url: >-
  https://lit-ui-router.dev/reference/lit-ui-router-ssr/client/functions/isServedViewClass.md
---
[lit-ui-router-ssr](../../index.md) / [client](../index.md) / isServedViewClass

# Function: isServedViewClass()

```ts
function isServedViewClass(constructor): boolean;
```

Defined in: [packages/lit-ui-router-ssr/src/served-view.ts:170](https://github.com/simshanith/lit-ui-router/blob/6e47ef8d8a4b24e99c074fb5c8c9cfaddfdb36a4/packages/lit-ui-router-ssr/src/served-view.ts#L170)

Whether `constructor` is a served `<ui-view>` class — this package's, or
another copy's.

## Parameters

| Parameter | Type | Description |
| ------ | ------ | ------ |
| `constructor` | `CustomElementConstructor` | `undefined` | the class a registry holds for a tag |

## Returns

`boolean`
