Skip to content

Commit 39e97de

Browse files
authored
Create small-birds-arrive.md
1 parent 25e6267 commit 39e97de

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.changeset/small-birds-arrive.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
"@trigger.dev/react-hooks": patch
3+
---
4+
5+
Added the ability to specify a "createdAt" filter when subscribing to tags in our useRealtime hooks:
6+
7+
```tsx
8+
// Only subscribe to runs created in the last 10 hours
9+
useRealtimeRunWithTags("my-tag", { createdAt: "10h" })
10+
```
11+
12+
You can also now choose to skip subscribing to specific columns by specifying the `skipColumns` option:
13+
14+
```tsx
15+
useRealtimeRun(run.id, { skipColumns: ["usageDurationMs"] });
16+
```

0 commit comments

Comments
 (0)