Skip to content

Commit 6487433

Browse files
committed
Renamed prop to useRemoteDevtool
1 parent 56da3c6 commit 6487433

5 files changed

Lines changed: 23 additions & 23 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default function App() {
3232
<View style={styles.container}>
3333
<Main />
3434
</View>
35-
<QueryNativeDevtool queryClient={queryClient} useRemoteDebugger={false} />
35+
<QueryNativeDevtool queryClient={queryClient} useRemoteDevtool={false} />
3636
</QueryClientProvider>
3737
);
3838
}
@@ -49,7 +49,7 @@ If your app runs `react-query v3` pass `version="v3"` prop to `QueryNativeDevtoo
4949
| `queryClient`\* | QueryClient | First name of the user | undefined |
5050
| `version` | string | Last name of the user | "v5" |
5151
| `hideFloatingButton` | boolean | Hides Floating button | false |
52-
| `useRemoteDebugger` | boolean | Enable remote debugging via standalone app | false |
52+
| `useRemoteDevtool` | boolean | Enable remote debugging via standalone app | true |
5353

5454
## Standalone app (Optional)
5555

@@ -59,7 +59,7 @@ If you want more room to debug your query data, you can download the standalone
5959
export default function App() {
6060
return (
6161
<QueryClientProvider client={queryClient}>
62-
<QueryNativeDevtool queryClient={queryClient} useRemoteDebugger={true} />
62+
<QueryNativeDevtool queryClient={queryClient} useRemoteDevtool={true} />
6363
</QueryClientProvider>
6464
);
6565
}

example/react-query-v3/src/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default function App() {
2121
<QueryNativeDevtool
2222
queryClient={queryClient}
2323
version="v3"
24-
useRemoteDebugger={false}
24+
useRemoteDevtool={false}
2525
/>
2626
</SafeAreaView>
2727
);

packages/react-native-query-devtool/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default function App() {
2828
<View style={styles.container}>
2929
<Main />
3030
</View>
31-
<QueryNativeDevtool queryClient={queryClient} useRemoteDebugger={false} />
31+
<QueryNativeDevtool queryClient={queryClient} useRemoteDevtool={false} />
3232
</QueryClientProvider>
3333
);
3434
}
@@ -45,7 +45,7 @@ If your app runs `react-query v3` pass `version="v3"` prop to `QueryNativeDevtoo
4545
| `queryClient`\* | QueryClient | First name of the user | undefined |
4646
| `version` | string | Last name of the user | "v5" |
4747
| `hideFloatingButton` | boolean | Hides Floating button | false |
48-
| `useRemoteDebugger` | boolean | Enable remote debugging via standalone app | false |
48+
| `useRemoteDevtool` | boolean | Enable remote debugging via standalone app | true |
4949

5050
## Standalone app (Optional)
5151

@@ -55,7 +55,7 @@ If you want more room to debug your query data, you can download the standalone
5555
export default function App() {
5656
return (
5757
<QueryClientProvider client={queryClient}>
58-
<QueryNativeDevtool queryClient={queryClient} useRemoteDebugger={true} />
58+
<QueryNativeDevtool queryClient={queryClient} useRemoteDevtool={true} />
5959
</QueryClientProvider>
6060
);
6161
}

packages/react-native-query-devtool/src/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const QueryNativeDevtool: React.FC<QueryDevtoolProps> = ({
1313
queryClient,
1414
version = "v5",
1515
hideFloatingButton = false,
16-
useRemoteDebugger = false,
16+
useRemoteDevtool = true,
1717
}) => {
1818
const actionSheetRef = useRef<ActionSheetRef>(null);
1919

@@ -32,7 +32,7 @@ const QueryNativeDevtool: React.FC<QueryDevtoolProps> = ({
3232
<FloatingButton onPress={() => actionSheetRef.current?.show()} />
3333
)}
3434

35-
{useRemoteDebugger && (
35+
{useRemoteDevtool && (
3636
<RemoteDebugger queryClient={queryClient} version={version} />
3737
)}
3838
</React.Fragment>
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
export type ReactQueryVersion = 'v3' | 'v4' | 'v5';
1+
export type ReactQueryVersion = "v3" | "v4" | "v5";
22

33
export type QueryKey = string | string[];
44

55
export type QueryDevtoolProps = {
66
queryClient: any;
77
version?: ReactQueryVersion;
8-
useRemoteDebugger?: boolean;
8+
useRemoteDevtool?: boolean;
99
hideFloatingButton?: boolean;
1010
};
1111

@@ -20,19 +20,19 @@ export type QueryDevtoolData = {
2020
};
2121

2222
export type ListenerV3 =
23-
| 'queryAdded'
24-
| 'queryUpdated'
25-
| 'queryRemoved'
26-
| 'observerAdded'
27-
| 'observerRemoved'
28-
| 'observerResultsUpdated';
23+
| "queryAdded"
24+
| "queryUpdated"
25+
| "queryRemoved"
26+
| "observerAdded"
27+
| "observerRemoved"
28+
| "observerResultsUpdated";
2929

3030
export type ListenerV4 =
31-
| 'added'
32-
| 'updated'
33-
| 'removed'
34-
| 'observerAdded'
35-
| 'observerRemoved'
36-
| 'observerResultsUpdated';
31+
| "added"
32+
| "updated"
33+
| "removed"
34+
| "observerAdded"
35+
| "observerRemoved"
36+
| "observerResultsUpdated";
3737

3838
export type ListenerEventType = ListenerV3 | ListenerV4;

0 commit comments

Comments
 (0)