Skip to content

Commit

Permalink
Update docs/react/reference/hydration.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo authored Apr 1, 2023
1 parent 1d92e23 commit d3975e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/react/reference/hydration.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const dehydratedState = dehydrate(queryClient, {

### limitations

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.:
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.:

```tsx
// server
Expand Down

0 comments on commit d3975e5

Please sign in to comment.