We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e5dedb commit 0ae1568Copy full SHA for 0ae1568
1 file changed
README.md
@@ -107,11 +107,13 @@ import {
107
108
function App() {
109
// You can still use the auto-generated query key
110
- const { data } = useQuery([usePetServiceFindPetsByStatusKey], () => {
111
- // Do something here
112
-
113
- return PetService.findPetsByStatus(['available']);
114
- });
+ const { data } = useQuery({
+ queryKey: [usePetServiceFindPetsByStatusKey],
+ queryFn: () => {
+ // Do something here
+ return PetService.findPetsByStatus(['available']);
115
+ }
116
+});
117
118
return (
119
<div className="App">
0 commit comments