---
url: >-
  https://lit-ui-router.dev/v1/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

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)
