Skip to content

Commit d330b07

Browse files
committed
feat: add React Query dev tools plugin
1 parent 2a8cbc4 commit d330b07

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
"e2e-test": "maestro test .maestro/ -e APP_ID=com.obytes.development"
3838
},
3939
"dependencies": {
40+
"@dev-plugins/react-query": "^0.0.5",
4041
"@expo/metro-runtime": "^3.1.3",
4142
"@gorhom/bottom-sheet": "^4.6.0",
4243
"@hookform/resolvers": "^2.9.11",

pnpm-lock.yaml

Lines changed: 14 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/api/common/api-provider.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1+
import { useReactQueryDevTools } from '@dev-plugins/react-query';
12
import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
23
import * as React from 'react';
34

45
export const queryClient = new QueryClient();
56

67
export function APIProvider({ children }: { children: React.ReactNode }) {
8+
useReactQueryDevTools(queryClient);
79
return (
810
// Provide the client to your App
911
<QueryClientProvider client={queryClient}>{children}</QueryClientProvider>

0 commit comments

Comments
 (0)