@tanstack/query-devtools 5.96.0 → 5.96.1

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.
@@ -1,4 +1,4 @@
1
- // ../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/dist/solid.js
1
+ // ../../node_modules/.pnpm/solid-js@1.9.12/node_modules/solid-js/dist/solid.js
2
2
  var sharedConfig = {
3
3
  context: void 0,
4
4
  registry: void 0,
@@ -475,6 +475,7 @@ function runComputation(node, value, time) {
475
475
  if (node.updatedAt != null && "observers" in node) {
476
476
  writeSignal(node, nextValue, true);
477
477
  } else if (Transition && Transition.running && node.pure) {
478
+ if (!Transition.sources.has(node)) node.value = nextValue;
478
479
  Transition.sources.add(node);
479
480
  node.tValue = nextValue;
480
481
  } else node.value = nextValue;
@@ -510,16 +511,26 @@ function createComputation(fn, init, pure, state = STALE, options) {
510
511
  }
511
512
  }
512
513
  if (ExternalSourceConfig && c.fn) {
514
+ const sourceFn = c.fn;
513
515
  const [track, trigger] = createSignal(void 0, {
514
516
  equals: false
515
517
  });
516
- const ordinary = ExternalSourceConfig.factory(c.fn, trigger);
518
+ const ordinary = ExternalSourceConfig.factory(sourceFn, trigger);
517
519
  onCleanup(() => ordinary.dispose());
518
- const triggerInTransition = () => startTransition(trigger).then(() => inTransition.dispose());
519
- const inTransition = ExternalSourceConfig.factory(c.fn, triggerInTransition);
520
+ let inTransition;
521
+ const triggerInTransition = () => startTransition(trigger).then(() => {
522
+ if (inTransition) {
523
+ inTransition.dispose();
524
+ inTransition = void 0;
525
+ }
526
+ });
520
527
  c.fn = (x) => {
521
528
  track();
522
- return Transition && Transition.running ? inTransition.track(x) : ordinary.track(x);
529
+ if (Transition && Transition.running) {
530
+ if (!inTransition) inTransition = ExternalSourceConfig.factory(sourceFn, triggerInTransition);
531
+ return inTransition.track(x);
532
+ }
533
+ return ordinary.track(x);
523
534
  };
524
535
  }
525
536
  return c;
@@ -1188,7 +1199,7 @@ function Match(props) {
1188
1199
  }
1189
1200
  var DEV = void 0;
1190
1201
 
1191
- // ../../node_modules/.pnpm/solid-js@1.9.11/node_modules/solid-js/web/dist/web.js
1202
+ // ../../node_modules/.pnpm/solid-js@1.9.12/node_modules/solid-js/web/dist/web.js
1192
1203
  var booleans = [
1193
1204
  "allowfullscreen",
1194
1205
  "async",
@@ -2144,6 +2155,7 @@ var simpleRules = [
2144
2155
  if (typeof BigInt !== "undefined") {
2145
2156
  return BigInt(v);
2146
2157
  }
2158
+ console.error("Please add a BigInt polyfill.");
2147
2159
  return v;
2148
2160
  }),
2149
2161
  simpleTransformation(isDate, "Date", (v) => v.toISOString(), (v) => new Date(v)),