Skip to content

Commit a837dc7

Browse files
authored
Update create-route.md
1 parent 63d7110 commit a837dc7

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/api/create-route.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,19 @@ sample({
101101

102102
**Signature:** `Event<RouteParamsAndQuery<RouteParams>>`
103103

104+
### `.closed`
105+
106+
Triggers when route gets closed
107+
108+
```ts
109+
sample({
110+
clock: postRoute.closed,
111+
target: cleanup,
112+
});
113+
```
114+
115+
**Signature:** `Event<void>`
116+
104117
## Stores
105118

106119
### `$isOpened`

0 commit comments

Comments
 (0)