@tanstack/query-devtools 5.0.0-alpha.84 → 5.0.0-alpha.86

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/dist/esm/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export { T as TanstackQueryDevtools } from './index-7c6d68e3.js';
1
+ export { T as TanstackQueryDevtools } from './index-7b089165.js';
2
2
  //# sourceMappingURL=index.js.map
@@ -302,14 +302,12 @@ export const DevtoolsPanel = (props) => {
302
302
  <div class={styles.actionsContainer}>
303
303
  <button onClick={() => {
304
304
  if (offline()) {
305
- onlineManager().setOnline(undefined);
305
+ onlineManager().setOnline(true);
306
306
  setOffline(false);
307
- window.dispatchEvent(new Event('online'));
308
307
  }
309
308
  else {
310
309
  onlineManager().setOnline(false);
311
310
  setOffline(true);
312
- window.dispatchEvent(new Event('offline'));
313
311
  }
314
312
  }} class={styles.actionsBtn} aria-label={`${offline()
315
313
  ? 'Unset offline mocking behavior'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/query-devtools",
3
- "version": "5.0.0-alpha.84",
3
+ "version": "5.0.0-alpha.86",
4
4
  "description": "Developer tools to interact with and visualize the TanStack Query cache",
5
5
  "author": "tannerlinsley",
6
6
  "license": "MIT",
@@ -44,7 +44,7 @@
44
44
  },
45
45
  "devDependencies": {
46
46
  "vite-plugin-solid": "^2.5.0",
47
- "@tanstack/query-core": "5.0.0-alpha.84"
47
+ "@tanstack/query-core": "5.0.0-alpha.86"
48
48
  },
49
49
  "scripts": {
50
50
  "clean": "rimraf ./dist && rimraf ./coverage",
package/src/Devtools.tsx CHANGED
@@ -485,13 +485,11 @@ export const DevtoolsPanel: Component<DevtoolsPanelProps> = (props) => {
485
485
  <button
486
486
  onClick={() => {
487
487
  if (offline()) {
488
- onlineManager().setOnline(undefined)
488
+ onlineManager().setOnline(true)
489
489
  setOffline(false)
490
- window.dispatchEvent(new Event('online'))
491
490
  } else {
492
491
  onlineManager().setOnline(false)
493
492
  setOffline(true)
494
- window.dispatchEvent(new Event('offline'))
495
493
  }
496
494
  }}
497
495
  class={styles.actionsBtn}