---
url: >-
  https://lit-ui-router.dev/reference/ui-router-effect/functions/snapshotRoute.md
---
[ui-router-effect](../index.md) / snapshotRoute

# Function: snapshotRoute()

```ts
function snapshotRoute(router, transition?): RouteSnapshot;
```

Defined in: [shared/route-snapshot/src/route-snapshot.ts:38](https://github.com/simshanith/lit-ui-router/blob/740888c2b2ba358c4dfa52a122e927df6a604b12/packages/shared/route-snapshot/src/route-snapshot.ts#L38)

The snapshot of a router right now; `StateService.includes` minus the live reads.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `router` | [`UIRouter`](https://ui-router.github.io/core/docs/latest/classes/_router_.uirouter.html) |
| `transition?` | | [`Transition`](https://ui-router.github.io/core/docs/latest/classes/_transition_transition_.transition.html) | `undefined` |

## Returns

[`RouteSnapshot`](../interfaces/RouteSnapshot.md)
