@tanstack/react-query-devtools 4.28.0 → 4.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/lib/devtools.esm.js +11 -1
- package/build/lib/devtools.esm.js.map +1 -1
- package/build/lib/devtools.js +11 -1
- package/build/lib/devtools.js.map +1 -1
- package/build/lib/devtools.mjs +11 -1
- package/build/lib/devtools.mjs.map +1 -1
- package/build/lib/index.prod.esm.js +11 -1
- package/build/lib/index.prod.esm.js.map +1 -1
- package/build/lib/index.prod.js +11 -1
- package/build/lib/index.prod.js.map +1 -1
- package/build/lib/index.prod.mjs +11 -1
- package/build/lib/index.prod.mjs.map +1 -1
- package/build/umd/index.development.js +11 -1
- package/build/umd/index.development.js.map +1 -1
- package/package.json +1 -1
- package/src/__tests__/devtools.test.tsx +37 -0
- package/src/devtools.tsx +15 -0
package/build/lib/index.prod.mjs
CHANGED
|
@@ -1099,6 +1099,15 @@ const ReactQueryDevtoolsPanel$1 = /*#__PURE__*/React.forwardRef(function ReactQu
|
|
|
1099
1099
|
marginRight: '.5em'
|
|
1100
1100
|
}
|
|
1101
1101
|
}, baseSort === 1 ? '⬆ Asc' : '⬇ Desc'), /*#__PURE__*/React.createElement(Button, {
|
|
1102
|
+
title: "Clear cache",
|
|
1103
|
+
"aria-label": "Clear cache",
|
|
1104
|
+
type: "button",
|
|
1105
|
+
onClick: () => queryCache.clear(),
|
|
1106
|
+
style: {
|
|
1107
|
+
padding: '.3em .4em',
|
|
1108
|
+
marginRight: '.5em'
|
|
1109
|
+
}
|
|
1110
|
+
}, "Clear"), /*#__PURE__*/React.createElement(Button, {
|
|
1102
1111
|
type: "button",
|
|
1103
1112
|
onClick: () => {
|
|
1104
1113
|
if (isMockOffline) {
|
|
@@ -1576,7 +1585,8 @@ const QueryRow = /*#__PURE__*/React.memo(({
|
|
|
1576
1585
|
padding: '.5em'
|
|
1577
1586
|
}
|
|
1578
1587
|
}, "" + queryHash));
|
|
1579
|
-
});
|
|
1588
|
+
});
|
|
1589
|
+
QueryRow.displayName = 'QueryRow'; // eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1580
1590
|
|
|
1581
1591
|
function noop() {}
|
|
1582
1592
|
|