---
# System prepended metadata

title: Snapshots
tags: [brew-js]

---

---
tags: brew-js
---

# Snapshots

<span style="background: lightblue;padding:.25em .75em;border-radius:1em;font-weight:bold">v0.4.9</span>

Snapshots can be taken for history storage.

When snapshot is taken, a new entry is pushed to browser history, where user can go back and forward and upon `popstate` event the saved history storage will be restored as `app.historyStorage.current`.

```typescript
app.snapshot()
```
