Skip to content

Commit 8bff7d6

Browse files
authored
docs: fix initialDataUpdatedAt timestamp information (TanStack#1539)
1 parent c21e88c commit 8bff7d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/src/pages/guides/initial-query-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ By default, `initialData` is treated as totally fresh, as if it were just fetche
5252
}
5353
```
5454

55-
- So what if your `initialData` isn't totally fresh? That leaves us with the last configuration that is actually the most accurate and uses an option called `initialDataUpdatedAt`. This options allows you to pass a numeric unix timestamp of when the initialData itself was last updated.
55+
- So what if your `initialData` isn't totally fresh? That leaves us with the last configuration that is actually the most accurate and uses an option called `initialDataUpdatedAt`. This options allows you to pass a numeric JS timestamp in milliseconds of when the initialData itself was last updated, e.g. what `Date.now()` provides. Take note that if you have a unix timestamp, you'll need to convert it to a JS timestamp by multiplying it by `1000`.
5656
```js
5757
function Todos() {
5858
// Show initialTodos immeidately, but won't refetch until another interaction event is encountered after 1000 ms

0 commit comments

Comments
 (0)