Skip to content

Commit 2184a17

Browse files
Highlighting change of the default config key.
While migrating I failed to spot this change and almost caused a prod bug, so I'm proposing this change to avoid anyone else also doing so 👍
1 parent c343457 commit 2184a17

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/src/pages/guides/migrating-to-react-query-3.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ const queryClient = new QueryClient()
4848

4949
Default options for queries and mutations can now be specified in `QueryClient`:
5050

51+
**Notice that it's now defaultOptions instead of defaultConfig**
52+
5153
```js
5254
const queryClient = new QueryClient({
5355
defaultOptions: {

0 commit comments

Comments
 (0)