Skip to content

Commit 1365767

Browse files
authored
Merge branch 'beta' into query-devtools-style-fixes
2 parents 0456606 + 7760ee5 commit 1365767

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

packages/query-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tanstack/query-devtools",
3-
"version": "5.0.0-beta.20",
3+
"version": "5.0.0-beta.33",
44
"description": "Developer tools to interact with and visualize the TanStack Query cache",
55
"author": "tannerlinsley",
66
"license": "MIT",

packages/query-devtools/src/Devtools.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1061,6 +1061,7 @@ const QueryDetails = () => {
10611061
'tsqd-query-details-action-invalidate',
10621062
)}
10631063
onClick={() => queryClient.invalidateQueries(activeQuery())}
1064+
disabled={queryStatus() === 'pending'}
10641065
>
10651066
<span
10661067
class={css`
@@ -1078,6 +1079,7 @@ const QueryDetails = () => {
10781079
'tsqd-query-details-action-reset',
10791080
)}
10801081
onClick={() => queryClient.resetQueries(activeQuery())}
1082+
disabled={queryStatus() === 'pending'}
10811083
>
10821084
<span
10831085
class={css`
@@ -1130,7 +1132,7 @@ const QueryDetails = () => {
11301132
background-color: ${tokens.colors.cyan[400]};
11311133
`}
11321134
></span>
1133-
{statusLabel() === 'fetching' ? 'Restore' : 'Trigger'} Loading
1135+
{queryStatus() === 'pending' ? 'Restore' : 'Trigger'} Loading
11341136
</button>
11351137
<Show when={errorTypes().length === 0 || queryStatus() === 'error'}>
11361138
<button
@@ -1148,6 +1150,7 @@ const QueryDetails = () => {
11481150
queryClient.resetQueries(activeQuery())
11491151
}
11501152
}}
1153+
disabled={queryStatus() === 'pending'}
11511154
>
11521155
<span
11531156
class={css`

packages/react-query-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tanstack/react-query-devtools",
3-
"version": "5.0.0-beta.31",
3+
"version": "5.0.0-beta.33",
44
"description": "Developer tools to interact with and visualize the TanStack/react-query cache",
55
"author": "tannerlinsley",
66
"license": "MIT",

packages/svelte-query-devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tanstack/svelte-query-devtools",
3-
"version": "5.0.0-beta.31",
3+
"version": "5.0.0-beta.33",
44
"description": "Developer tools to interact with and visualize the TanStack/svelte-query cache",
55
"author": "Lachlan Collins",
66
"license": "MIT",

0 commit comments

Comments
 (0)