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

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`>
