@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.js
CHANGED
|
@@ -1125,6 +1125,15 @@ const ReactQueryDevtoolsPanel$1 = /*#__PURE__*/React__namespace.forwardRef(funct
|
|
|
1125
1125
|
marginRight: '.5em'
|
|
1126
1126
|
}
|
|
1127
1127
|
}, baseSort === 1 ? '⬆ Asc' : '⬇ Desc'), /*#__PURE__*/React__namespace.createElement(Button, {
|
|
1128
|
+
title: "Clear cache",
|
|
1129
|
+
"aria-label": "Clear cache",
|
|
1130
|
+
type: "button",
|
|
1131
|
+
onClick: () => queryCache.clear(),
|
|
1132
|
+
style: {
|
|
1133
|
+
padding: '.3em .4em',
|
|
1134
|
+
marginRight: '.5em'
|
|
1135
|
+
}
|
|
1136
|
+
}, "Clear"), /*#__PURE__*/React__namespace.createElement(Button, {
|
|
1128
1137
|
type: "button",
|
|
1129
1138
|
onClick: () => {
|
|
1130
1139
|
if (isMockOffline) {
|
|
@@ -1602,7 +1611,8 @@ const QueryRow = /*#__PURE__*/React__namespace.memo(({
|
|
|
1602
1611
|
padding: '.5em'
|
|
1603
1612
|
}
|
|
1604
1613
|
}, "" + queryHash));
|
|
1605
|
-
});
|
|
1614
|
+
});
|
|
1615
|
+
QueryRow.displayName = 'QueryRow'; // eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
1606
1616
|
|
|
1607
1617
|
function noop() {}
|
|
1608
1618
|
|