# Leaderboard: refresh() method

> The refresh() method of the Leaderboard interface does nothing, since a room caches nothing of a leaderboard.

The **`refresh()`** method of the [`Leaderboard`](/docs/room/leaderboard) interface does nothing: a room caches nothing of a leaderboard, so every [`top()`](/docs/room/leaderboard/top) and [`around()`](/docs/room/leaderboard/around) already reads it from the data service. It's there so every data handle has a `refresh()`.

## Syntax

```ts
refresh()
```

### Parameters

None.

### Return value

None (`undefined`).

## Examples

### Refreshing every data handle alike

```ts
// refresh-all.ts
import { defineRoom } from "@irtio/room";

export default defineRoom({
  async onMessage(room, connection, message) {
    if (message !== "refresh") return;
    await room.playerData(connection.player).refresh();
    room.collection("levels").refresh();
    room.leaderboard("points").refresh();
  },
});
```

## See also

- [`PlayerData.refresh()`](/docs/room/player-data/refresh)
- [`Collection.refresh()`](/docs/room/collection/refresh)
