Skip to content

Commit d3975e5

Browse files
authored
Update docs/react/reference/hydration.md
1 parent 1d92e23 commit d3975e5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

docs/react/reference/hydration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ const dehydratedState = dehydrate(queryClient, {
4747

4848
### limitations
4949

50-
Some storage systems (such as browser [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API)) require values to be JSON serializable. If you need to dehydrate values that are not automatically serializable to JSON (like `Error` or `undefined`), you have to serialize them for yourself. Since only successful queries are included per default, to also include `Errors`, you have to provide `shouldDehydrateQuery `, e.g.:
50+
Some storage systems (such as browser [Web Storage API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API)) require values to be JSON serializable. If you need to dehydrate values that are not automatically serializable to JSON (like `Error` or `undefined`), you have to serialize them for yourself. Since only successful queries are included per default, to also include `Errors`, you have to provide `shouldDehydrateQuery`, e.g.:
5151

5252
```tsx
5353
// server

0 commit comments

Comments
 (0)