Skip to content

Commit b1b1d4f

Browse files
authored
fix(develop): Import hook instead of queryClient (#12994)
1 parent d38aa10 commit b1b1d4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

develop-docs/frontend/network-requests.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ Reusable queries like this can be placed in `/sentry/actionsCreators`.
142142
There are many situations where your query data becomes out of date and needs to be updated or refetched. This is usually because of some user input (e.g. creating/deleting/editing a record). If you already know what the new data should look like, you can (and should) immediately update the cache using the query client:
143143

144144
```tsx
145-
import {setQueryData, queryClient} from 'utils/queryClient'
145+
import {setQueryData, useQueryClient} from 'utils/queryClient'
146146

147147
const queryClient = useQueryClient();
148148

0 commit comments

Comments
 (0)