---
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/18dc41814e4c4326251623a15a8b3aaefcf54372/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)
