Skip to content

Commit 21dc729

Browse files
authored
fix(query-devtools): Update default devtools button position to bottom-right 🌱 (TanStack#6720)
* docs: Update default position * fix: Default btn position for React.js * fix: Default btn position for Solid.js * fix: Default btn position for Svelte * fix: Default btn position for Vue.js
1 parent 6356b74 commit 21dc729

File tree

9 files changed

+9
-9
lines changed

9 files changed

+9
-9
lines changed

docs/angular/devtools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ import { Component } from '@angular/core';
4646
- `initialIsOpen: Boolean`
4747
- Set this `true` if you want the dev tools to default to being open
4848
- `buttonPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right"`
49-
- Defaults to `bottom-left`
49+
- Defaults to `bottom-right`
5050
- The position of the TanStack logo to open and close the devtools panel
5151
- `position?: "top" | "bottom" | "left" | "right"`
5252
- Defaults to `bottom`

docs/react/devtools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ function App() {
5757
- `initialIsOpen: Boolean`
5858
- Set this `true` if you want the dev tools to default to being open
5959
- `buttonPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right"`
60-
- Defaults to `bottom-left`
60+
- Defaults to `bottom-right`
6161
- The position of the React Query logo to open and close the devtools panel
6262
- `position?: "top" | "bottom" | "left" | "right"`
6363
- Defaults to `bottom`

docs/solid/devtools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ function App() {
5353
- `initialIsOpen: Boolean`
5454
- Set this `true` if you want the dev tools to default to being open
5555
- `buttonPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right"`
56-
- Defaults to `bottom-left`
56+
- Defaults to `bottom-right`
5757
- The position of the Solid Query logo to open and close the devtools panel
5858
- `position?: "top" | "bottom" | "left" | "right"`
5959
- Defaults to `bottom`

docs/vue/devtools.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ import { VueQueryDevtools } from '@tanstack/vue-query-devtools'
4949
- `initialIsOpen: Boolean`
5050
- Set this `true` if you want the dev tools to default to being open
5151
- `buttonPosition?: "top-left" | "top-right" | "bottom-left" | "bottom-right"`
52-
- Defaults to `bottom-left`
52+
- Defaults to `bottom-right`
5353
- The position of the React Query logo to open and close the devtools panel
5454
- `position?: "top" | "bottom" | "left" | "right"`
5555
- Defaults to `bottom`

packages/react-query-devtools/src/devtools.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export interface DevtoolsOptions {
1717
/**
1818
* The position of the React Query logo to open and close the devtools panel.
1919
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
20-
* Defaults to 'bottom-left'.
20+
* Defaults to 'bottom-right'.
2121
*/
2222
buttonPosition?: DevtoolsButtonPosition
2323
/**

packages/solid-query-devtools/src/devtools.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ interface DevtoolsOptions {
2727
/**
2828
* The position of the React Query logo to open and close the devtools panel.
2929
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
30-
* Defaults to 'bottom-left'.
30+
* Defaults to 'bottom-right'.
3131
*/
3232
buttonPosition?: DevtoolsButtonPosition
3333
/**

packages/svelte-query-devtools/src/Devtools.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
} from '@tanstack/query-devtools'
1212
1313
export let initialIsOpen = false
14-
export let buttonPosition: DevtoolsButtonPosition = 'bottom-left'
14+
export let buttonPosition: DevtoolsButtonPosition = 'bottom-right'
1515
export let position: DevtoolsPosition = 'bottom'
1616
export let client: QueryClient = useQueryClient()
1717
export let errorTypes: Array<DevToolsErrorType> = []

packages/vue-query-devtools/src/devtools.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const devtools = new TanstackQueryDevtools({
2121
})
2222
2323
watchEffect(() => {
24-
devtools.setButtonPosition(props.buttonPosition || 'bottom-left')
24+
devtools.setButtonPosition(props.buttonPosition || 'bottom-right')
2525
devtools.setPosition(props.position || 'bottom')
2626
devtools.setInitialIsOpen(props.initialIsOpen)
2727
devtools.setErrorTypes(props.errorTypes || [])

packages/vue-query-devtools/src/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export interface DevtoolsOptions {
1313
/**
1414
* The position of the React Query logo to open and close the devtools panel.
1515
* 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right'
16-
* Defaults to 'bottom-left'.
16+
* Defaults to 'bottom-right'.
1717
*/
1818
buttonPosition?: DevtoolsButtonPosition
1919
/**

0 commit comments

Comments
 (0)