---
url: >-
  https://lit-ui-router.dev/reference/ui-router-server/simulate/functions/onceSettled.md
---
[ui-router-server](../../index.md) / [simulate](../index.md) / onceSettled

# Function: onceSettled()

```ts
function onceSettled(router): Promise<boolean>;
```

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

Resolves once the router's transition settles — true on success, false on a
real failure. Redirected rejections only hand off to a successor
transition, so the final transition's outcome is the answer.

## Parameters

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

## Returns

`Promise`<`boolean`>
