---
url: https://lit-ui-router.dev/api/lit-ui-router-effect/type-aliases/RefSource.md
---
[lit-ui-router-effect](../index.md) / RefSource

# Type Alias: RefSource\<Refs>

```ts
type RefSource<Refs> = Refs | (() => Refs | undefined);
```

Defined in: [lit-ui-router-effect/src/ref-controller.ts:89](https://github.com/simshanith/lit-ui-router/blob/92660184d9980e90964f7e785d5efeb5cae43b42/packages/lit-ui-router-effect/src/ref-controller.ts#L89)

Where a [RefController](../classes/RefController.md) finds its refs: the tuple itself, or a thunk
resolved on every `hostConnected` for refs that depend on the host's place
in the DOM (the router's, discovered from the enclosing `<ui-router>`). A
thunk returning `undefined` leaves the controller idle until the host
reconnects.

## Type Parameters

| Type Parameter |
| ------ |
|  `Refs` *extends* [`SubscriptionRefs`](SubscriptionRefs.md) |
