@tanstack/query-devtools 5.51.15 → 5.52.3

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,15 +1,25 @@
1
- // ../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/dist/solid.js
1
+ // ../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/dist/solid.js
2
2
  var sharedConfig = {
3
3
  context: void 0,
4
- registry: void 0
4
+ registry: void 0,
5
+ getContextId() {
6
+ return getContextId(this.context.count);
7
+ },
8
+ getNextContextId() {
9
+ return getContextId(this.context.count++);
10
+ }
5
11
  };
12
+ function getContextId(count) {
13
+ const num = String(count), len = num.length - 1;
14
+ return sharedConfig.context.id + (len ? String.fromCharCode(96 + len) : "") + num;
15
+ }
6
16
  function setHydrateContext(context) {
7
17
  sharedConfig.context = context;
8
18
  }
9
19
  function nextHydrateContext() {
10
20
  return {
11
21
  ...sharedConfig.context,
12
- id: `${sharedConfig.context.id}${sharedConfig.context.count++}-`,
22
+ id: sharedConfig.getNextContextId(),
13
23
  count: 0
14
24
  };
15
25
  }
@@ -131,7 +141,7 @@ function createResource(pSource, pFetcher, pOptions) {
131
141
  equals: false
132
142
  }), [state, setState] = createSignal(resolved ? "ready" : "unresolved");
133
143
  if (sharedConfig.context) {
134
- id = `${sharedConfig.context.id}${sharedConfig.context.count++}`;
144
+ id = sharedConfig.getNextContextId();
135
145
  let v;
136
146
  if (options.ssrLoadFrom === "initial")
137
147
  initP = options.initialValue;
@@ -143,11 +153,9 @@ function createResource(pSource, pFetcher, pOptions) {
143
153
  pr = null;
144
154
  key !== void 0 && (resolved = true);
145
155
  if ((p === initP || v === initP) && options.onHydrated)
146
- queueMicrotask(
147
- () => options.onHydrated(key, {
148
- value: v
149
- })
150
- );
156
+ queueMicrotask(() => options.onHydrated(key, {
157
+ value: v
158
+ }));
151
159
  initP = NO_INIT;
152
160
  if (Transition && p && loadedUnderTransition) {
153
161
  Transition.promises.delete(p);
@@ -203,12 +211,10 @@ function createResource(pSource, pFetcher, pOptions) {
203
211
  }
204
212
  if (Transition && pr)
205
213
  Transition.promises.delete(pr);
206
- const p = initP !== NO_INIT ? initP : untrack(
207
- () => fetcher(lookup, {
208
- value: value(),
209
- refetching
210
- })
211
- );
214
+ const p = initP !== NO_INIT ? initP : untrack(() => fetcher(lookup, {
215
+ value: value(),
216
+ refetching
217
+ }));
212
218
  if (!isPromise(p)) {
213
219
  loadEnd(pr, p, void 0, lookup);
214
220
  return p;
@@ -218,7 +224,7 @@ function createResource(pSource, pFetcher, pOptions) {
218
224
  if (p.status === "success")
219
225
  loadEnd(pr, p.value, void 0, lookup);
220
226
  else
221
- loadEnd(pr, void 0, void 0, lookup);
227
+ loadEnd(pr, void 0, castError(p.value), lookup);
222
228
  return p;
223
229
  }
224
230
  scheduled = true;
@@ -227,10 +233,7 @@ function createResource(pSource, pFetcher, pOptions) {
227
233
  setState(resolved ? "refreshing" : "pending");
228
234
  trigger();
229
235
  }, false);
230
- return p.then(
231
- (v) => loadEnd(p, v, void 0, lookup),
232
- (e) => loadEnd(p, void 0, castError(e), lookup)
233
- );
236
+ return p.then((v) => loadEnd(p, v, void 0, lookup), (e) => loadEnd(p, void 0, castError(e), lookup));
234
237
  }
235
238
  Object.defineProperties(read, {
236
239
  state: {
@@ -260,13 +263,10 @@ function createResource(pSource, pFetcher, pOptions) {
260
263
  createComputed(() => load(false));
261
264
  else
262
265
  load(false);
263
- return [
264
- read,
265
- {
266
- refetch: load,
267
- mutate: setValue
268
- }
269
- ];
266
+ return [read, {
267
+ refetch: load,
268
+ mutate: setValue
269
+ }];
270
270
  }
271
271
  function batch(fn) {
272
272
  return runUpdates(fn, false);
@@ -375,7 +375,8 @@ function createContext(defaultValue, options) {
375
375
  };
376
376
  }
377
377
  function useContext(context) {
378
- return Owner && Owner.context && Owner.context[context.id] !== void 0 ? Owner.context[context.id] : context.defaultValue;
378
+ let value;
379
+ return Owner && Owner.context && (value = Owner.context[context.id]) !== void 0 ? value : context.defaultValue;
379
380
  }
380
381
  function children(fn) {
381
382
  const children2 = createMemo(fn);
@@ -469,11 +470,7 @@ function updateComputation(node) {
469
470
  return;
470
471
  cleanNode(node);
471
472
  const time = ExecCount;
472
- runComputation(
473
- node,
474
- Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value,
475
- time
476
- );
473
+ runComputation(node, Transition && Transition.running && Transition.sources.has(node) ? node.tValue : node.value, time);
477
474
  if (Transition && !Transition.running && Transition.sources.has(node)) {
478
475
  queueMicrotask(() => {
479
476
  runUpdates(() => {
@@ -851,16 +848,13 @@ function resolveChildren(children2) {
851
848
  function createProvider(id, options) {
852
849
  return function provider(props) {
853
850
  let res;
854
- createRenderEffect(
855
- () => res = untrack(() => {
856
- Owner.context = {
857
- ...Owner.context,
858
- [id]: props.value
859
- };
860
- return children(() => props.children);
861
- }),
862
- void 0
863
- );
851
+ createRenderEffect(() => res = untrack(() => {
852
+ Owner.context = {
853
+ ...Owner.context,
854
+ [id]: props.value
855
+ };
856
+ return children(() => props.children);
857
+ }), void 0);
864
858
  return res;
865
859
  };
866
860
  }
@@ -873,10 +867,10 @@ function mapArray(list, mapFn, options = {}) {
873
867
  let items = [], mapped = [], disposers = [], len = 0, indexes = mapFn.length > 1 ? [] : null;
874
868
  onCleanup(() => dispose(disposers));
875
869
  return () => {
876
- let newItems = list() || [], i, j;
870
+ let newItems = list() || [], newLen = newItems.length, i, j;
877
871
  newItems[$TRACK];
878
872
  return untrack(() => {
879
- let newLen = newItems.length, newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
873
+ let newIndices, newIndicesNext, temp, tempdisposers, tempIndexes, start, end, newEnd, item;
880
874
  if (newLen === 0) {
881
875
  if (len !== 0) {
882
876
  dispose(disposers);
@@ -963,10 +957,10 @@ function indexArray(list, mapFn, options = {}) {
963
957
  let items = [], mapped = [], disposers = [], signals = [], len = 0, i;
964
958
  onCleanup(() => dispose(disposers));
965
959
  return () => {
966
- const newItems = list() || [];
960
+ const newItems = list() || [], newLen = newItems.length;
967
961
  newItems[$TRACK];
968
962
  return untrack(() => {
969
- if (newItems.length === 0) {
963
+ if (newLen === 0) {
970
964
  if (len !== 0) {
971
965
  dispose(disposers);
972
966
  disposers = [];
@@ -992,7 +986,7 @@ function indexArray(list, mapFn, options = {}) {
992
986
  mapped = [];
993
987
  len = 0;
994
988
  }
995
- for (i = 0; i < newItems.length; i++) {
989
+ for (i = 0; i < newLen; i++) {
996
990
  if (i < items.length && items[i] !== newItems[i]) {
997
991
  signals[i](() => newItems[i]);
998
992
  } else if (i >= items.length) {
@@ -1002,7 +996,7 @@ function indexArray(list, mapFn, options = {}) {
1002
996
  for (; i < items.length; i++) {
1003
997
  disposers[i]();
1004
998
  }
1005
- len = signals.length = disposers.length = newItems.length;
999
+ len = signals.length = disposers.length = newLen;
1006
1000
  items = newItems.slice(0);
1007
1001
  return mapped = mapped.slice(0, len);
1008
1002
  });
@@ -1076,31 +1070,28 @@ function mergeProps(...sources) {
1076
1070
  sources[i] = typeof s === "function" ? (proxy = true, createMemo(s)) : s;
1077
1071
  }
1078
1072
  if (proxy) {
1079
- return new Proxy(
1080
- {
1081
- get(property) {
1082
- for (let i = sources.length - 1; i >= 0; i--) {
1083
- const v = resolveSource(sources[i])[property];
1084
- if (v !== void 0)
1085
- return v;
1086
- }
1087
- },
1088
- has(property) {
1089
- for (let i = sources.length - 1; i >= 0; i--) {
1090
- if (property in resolveSource(sources[i]))
1091
- return true;
1092
- }
1093
- return false;
1094
- },
1095
- keys() {
1096
- const keys = [];
1097
- for (let i = 0; i < sources.length; i++)
1098
- keys.push(...Object.keys(resolveSource(sources[i])));
1099
- return [...new Set(keys)];
1073
+ return new Proxy({
1074
+ get(property) {
1075
+ for (let i = sources.length - 1; i >= 0; i--) {
1076
+ const v = resolveSource(sources[i])[property];
1077
+ if (v !== void 0)
1078
+ return v;
1100
1079
  }
1101
1080
  },
1102
- propTraps
1103
- );
1081
+ has(property) {
1082
+ for (let i = sources.length - 1; i >= 0; i--) {
1083
+ if (property in resolveSource(sources[i]))
1084
+ return true;
1085
+ }
1086
+ return false;
1087
+ },
1088
+ keys() {
1089
+ const keys = [];
1090
+ for (let i = 0; i < sources.length; i++)
1091
+ keys.push(...Object.keys(resolveSource(sources[i])));
1092
+ return [...new Set(keys)];
1093
+ }
1094
+ }, propTraps);
1104
1095
  }
1105
1096
  const sourcesMap = {};
1106
1097
  const defined = /* @__PURE__ */ Object.create(null);
@@ -1146,37 +1137,29 @@ function splitProps(props, ...keys) {
1146
1137
  if ($PROXY in props) {
1147
1138
  const blocked = new Set(keys.length > 1 ? keys.flat() : keys[0]);
1148
1139
  const res = keys.map((k) => {
1149
- return new Proxy(
1150
- {
1151
- get(property) {
1152
- return k.includes(property) ? props[property] : void 0;
1153
- },
1154
- has(property) {
1155
- return k.includes(property) && property in props;
1156
- },
1157
- keys() {
1158
- return k.filter((property) => property in props);
1159
- }
1140
+ return new Proxy({
1141
+ get(property) {
1142
+ return k.includes(property) ? props[property] : void 0;
1160
1143
  },
1161
- propTraps
1162
- );
1163
- });
1164
- res.push(
1165
- new Proxy(
1166
- {
1167
- get(property) {
1168
- return blocked.has(property) ? void 0 : props[property];
1169
- },
1170
- has(property) {
1171
- return blocked.has(property) ? false : property in props;
1172
- },
1173
- keys() {
1174
- return Object.keys(props).filter((k) => !blocked.has(k));
1175
- }
1144
+ has(property) {
1145
+ return k.includes(property) && property in props;
1176
1146
  },
1177
- propTraps
1178
- )
1179
- );
1147
+ keys() {
1148
+ return k.filter((property) => property in props);
1149
+ }
1150
+ }, propTraps);
1151
+ });
1152
+ res.push(new Proxy({
1153
+ get(property) {
1154
+ return blocked.has(property) ? void 0 : props[property];
1155
+ },
1156
+ has(property) {
1157
+ return blocked.has(property) ? false : property in props;
1158
+ },
1159
+ keys() {
1160
+ return Object.keys(props).filter((k) => !blocked.has(k));
1161
+ }
1162
+ }, propTraps));
1180
1163
  return res;
1181
1164
  }
1182
1165
  const otherObject = {};
@@ -1220,19 +1203,17 @@ function lazy(fn) {
1220
1203
  comp = s;
1221
1204
  }
1222
1205
  let Comp;
1223
- return createMemo(
1224
- () => (Comp = comp()) && untrack(() => {
1225
- if (false)
1226
- ;
1227
- if (!ctx)
1228
- return Comp(props);
1229
- const c = sharedConfig.context;
1230
- setHydrateContext(ctx);
1231
- const r = Comp(props);
1232
- setHydrateContext(c);
1233
- return r;
1234
- })
1235
- );
1206
+ return createMemo(() => (Comp = comp()) && untrack(() => {
1207
+ if (false)
1208
+ ;
1209
+ if (!ctx)
1210
+ return Comp(props);
1211
+ const c = sharedConfig.context;
1212
+ setHydrateContext(ctx);
1213
+ const r = Comp(props);
1214
+ setHydrateContext(c);
1215
+ return r;
1216
+ }));
1236
1217
  };
1237
1218
  wrap.preload = () => p || ((p = fn()).then((mod) => comp = () => mod.default), p);
1238
1219
  return wrap;
@@ -1240,7 +1221,7 @@ function lazy(fn) {
1240
1221
  var counter = 0;
1241
1222
  function createUniqueId() {
1242
1223
  const ctx = sharedConfig.context;
1243
- return ctx ? `${ctx.id}${ctx.count++}` : `cl-${counter++}`;
1224
+ return ctx ? sharedConfig.getNextContextId() : `cl-${counter++}`;
1244
1225
  }
1245
1226
  var narrowedError = (name) => `Stale read from <${name}>.`;
1246
1227
  function For(props) {
@@ -1260,121 +1241,60 @@ function Show(props) {
1260
1241
  const condition = createMemo(() => props.when, void 0, {
1261
1242
  equals: (a, b) => keyed ? a === b : !a === !b
1262
1243
  });
1263
- return createMemo(
1264
- () => {
1265
- const c = condition();
1266
- if (c) {
1267
- const child = props.children;
1268
- const fn = typeof child === "function" && child.length > 0;
1269
- return fn ? untrack(
1270
- () => child(
1271
- keyed ? c : () => {
1272
- if (!untrack(condition))
1273
- throw narrowedError("Show");
1274
- return props.when;
1275
- }
1276
- )
1277
- ) : child;
1278
- }
1279
- return props.fallback;
1280
- },
1281
- void 0,
1282
- void 0
1283
- );
1244
+ return createMemo(() => {
1245
+ const c = condition();
1246
+ if (c) {
1247
+ const child = props.children;
1248
+ const fn = typeof child === "function" && child.length > 0;
1249
+ return fn ? untrack(() => child(keyed ? c : () => {
1250
+ if (!untrack(condition))
1251
+ throw narrowedError("Show");
1252
+ return props.when;
1253
+ })) : child;
1254
+ }
1255
+ return props.fallback;
1256
+ }, void 0, void 0);
1284
1257
  }
1285
1258
  function Switch(props) {
1286
1259
  let keyed = false;
1287
1260
  const equals = (a, b) => (keyed ? a[1] === b[1] : !a[1] === !b[1]) && a[2] === b[2];
1288
- const conditions = children(() => props.children), evalConditions = createMemo(
1289
- () => {
1290
- let conds = conditions();
1291
- if (!Array.isArray(conds))
1292
- conds = [conds];
1293
- for (let i = 0; i < conds.length; i++) {
1294
- const c = conds[i].when;
1295
- if (c) {
1296
- keyed = !!conds[i].keyed;
1297
- return [i, c, conds[i]];
1298
- }
1261
+ const conditions = children(() => props.children), evalConditions = createMemo(() => {
1262
+ let conds = conditions();
1263
+ if (!Array.isArray(conds))
1264
+ conds = [conds];
1265
+ for (let i = 0; i < conds.length; i++) {
1266
+ const c = conds[i].when;
1267
+ if (c) {
1268
+ keyed = !!conds[i].keyed;
1269
+ return [i, c, conds[i]];
1299
1270
  }
1300
- return [-1];
1301
- },
1302
- void 0,
1303
- {
1304
- equals
1305
- }
1306
- );
1307
- return createMemo(
1308
- () => {
1309
- const [index, when, cond] = evalConditions();
1310
- if (index < 0)
1311
- return props.fallback;
1312
- const c = cond.children;
1313
- const fn = typeof c === "function" && c.length > 0;
1314
- return fn ? untrack(
1315
- () => c(
1316
- keyed ? when : () => {
1317
- if (untrack(evalConditions)[0] !== index)
1318
- throw narrowedError("Match");
1319
- return cond.when;
1320
- }
1321
- )
1322
- ) : c;
1323
- },
1324
- void 0,
1325
- void 0
1326
- );
1271
+ }
1272
+ return [-1];
1273
+ }, void 0, {
1274
+ equals
1275
+ });
1276
+ return createMemo(() => {
1277
+ const [index, when, cond] = evalConditions();
1278
+ if (index < 0)
1279
+ return props.fallback;
1280
+ const c = cond.children;
1281
+ const fn = typeof c === "function" && c.length > 0;
1282
+ return fn ? untrack(() => c(keyed ? when : () => {
1283
+ if (untrack(evalConditions)[0] !== index)
1284
+ throw narrowedError("Match");
1285
+ return cond.when;
1286
+ })) : c;
1287
+ }, void 0, void 0);
1327
1288
  }
1328
1289
  function Match(props) {
1329
1290
  return props;
1330
1291
  }
1331
- var SuspenseListContext = createContext();
1332
1292
  var DEV = void 0;
1333
1293
 
1334
- // ../../node_modules/.pnpm/solid-js@1.8.17/node_modules/solid-js/web/dist/web.js
1335
- var booleans = [
1336
- "allowfullscreen",
1337
- "async",
1338
- "autofocus",
1339
- "autoplay",
1340
- "checked",
1341
- "controls",
1342
- "default",
1343
- "disabled",
1344
- "formnovalidate",
1345
- "hidden",
1346
- "indeterminate",
1347
- "inert",
1348
- "ismap",
1349
- "loop",
1350
- "multiple",
1351
- "muted",
1352
- "nomodule",
1353
- "novalidate",
1354
- "open",
1355
- "playsinline",
1356
- "readonly",
1357
- "required",
1358
- "reversed",
1359
- "seamless",
1360
- "selected"
1361
- ];
1362
- var Properties = /* @__PURE__ */ new Set([
1363
- "className",
1364
- "value",
1365
- "readOnly",
1366
- "formNoValidate",
1367
- "isMap",
1368
- "noModule",
1369
- "playsInline",
1370
- ...booleans
1371
- ]);
1372
- var ChildProperties = /* @__PURE__ */ new Set([
1373
- "innerHTML",
1374
- "textContent",
1375
- "innerText",
1376
- "children"
1377
- ]);
1294
+ // ../../node_modules/.pnpm/solid-js@1.8.19/node_modules/solid-js/web/dist/web.js
1295
+ var booleans = ["allowfullscreen", "async", "autofocus", "autoplay", "checked", "controls", "default", "disabled", "formnovalidate", "hidden", "indeterminate", "inert", "ismap", "loop", "multiple", "muted", "nomodule", "novalidate", "open", "playsinline", "readonly", "required", "reversed", "seamless", "selected"];
1296
+ var Properties = /* @__PURE__ */ new Set(["className", "value", "readOnly", "formNoValidate", "isMap", "noModule", "playsInline", ...booleans]);
1297
+ var ChildProperties = /* @__PURE__ */ new Set(["innerHTML", "textContent", "innerText", "children"]);
1378
1298
  var Aliases = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
1379
1299
  className: "class",
1380
1300
  htmlFor: "for"
@@ -1408,30 +1328,7 @@ function getPropAlias(prop, tagName) {
1408
1328
  const a = PropAliases[prop];
1409
1329
  return typeof a === "object" ? a[tagName] ? a["$"] : void 0 : a;
1410
1330
  }
1411
- var DelegatedEvents = /* @__PURE__ */ new Set([
1412
- "beforeinput",
1413
- "click",
1414
- "dblclick",
1415
- "contextmenu",
1416
- "focusin",
1417
- "focusout",
1418
- "input",
1419
- "keydown",
1420
- "keyup",
1421
- "mousedown",
1422
- "mousemove",
1423
- "mouseout",
1424
- "mouseover",
1425
- "mouseup",
1426
- "pointerdown",
1427
- "pointermove",
1428
- "pointerout",
1429
- "pointerover",
1430
- "pointerup",
1431
- "touchend",
1432
- "touchmove",
1433
- "touchstart"
1434
- ]);
1331
+ var DelegatedEvents = /* @__PURE__ */ new Set(["beforeinput", "click", "dblclick", "contextmenu", "focusin", "focusout", "input", "keydown", "keyup", "mousedown", "mousemove", "mouseout", "mouseover", "mouseup", "pointerdown", "pointermove", "pointerout", "pointerover", "pointerup", "touchend", "touchmove", "touchstart"]);
1435
1332
  var SVGElements = /* @__PURE__ */ new Set([
1436
1333
  "altGlyph",
1437
1334
  "altGlyphDef",
@@ -1693,13 +1590,9 @@ function style(node, value, prev) {
1693
1590
  function spread(node, props = {}, isSVG, skipChildren) {
1694
1591
  const prevProps = {};
1695
1592
  if (!skipChildren) {
1696
- createRenderEffect(
1697
- () => prevProps.children = insertExpression(node, props.children, prevProps.children)
1698
- );
1593
+ createRenderEffect(() => prevProps.children = insertExpression(node, props.children, prevProps.children));
1699
1594
  }
1700
- createRenderEffect(
1701
- () => typeof props.ref === "function" ? use(props.ref, node) : props.ref = node
1702
- );
1595
+ createRenderEffect(() => typeof props.ref === "function" && use(props.ref, node));
1703
1596
  createRenderEffect(() => assign(node, props, isSVG, true, prevProps, true));
1704
1597
  return prevProps;
1705
1598
  }
@@ -1854,8 +1747,11 @@ function insertExpression(parent, value, current, marker, unwrapArray) {
1854
1747
  if (t === "string" || t === "number") {
1855
1748
  if (hydrating)
1856
1749
  return current;
1857
- if (t === "number")
1750
+ if (t === "number") {
1858
1751
  value = value.toString();
1752
+ if (value === current)
1753
+ return current;
1754
+ }
1859
1755
  if (multi) {
1860
1756
  let node = current[0];
1861
1757
  if (node && node.nodeType === 3) {
@@ -1943,11 +1839,7 @@ function normalizeIncomingArray(normalized, array, current, unwrap) {
1943
1839
  if (unwrap) {
1944
1840
  while (typeof item === "function")
1945
1841
  item = item();
1946
- dynamic = normalizeIncomingArray(
1947
- normalized,
1948
- Array.isArray(item) ? item : [item],
1949
- Array.isArray(prev) ? prev : [prev]
1950
- ) || dynamic;
1842
+ dynamic = normalizeIncomingArray(normalized, Array.isArray(item) ? item : [item], Array.isArray(prev) ? prev : [prev]) || dynamic;
1951
1843
  } else {
1952
1844
  normalized.push(item);
1953
1845
  dynamic = true;
@@ -1988,8 +1880,7 @@ function cleanChildren(parent, current, marker, replacement) {
1988
1880
  return [node];
1989
1881
  }
1990
1882
  function getHydrationKey() {
1991
- const hydrate = sharedConfig.context;
1992
- return `${hydrate.id}${hydrate.count++}`;
1883
+ return sharedConfig.getNextContextId();
1993
1884
  }
1994
1885
  var RequestContext = Symbol();
1995
1886
  var isServer = false;
@@ -1998,41 +1889,39 @@ function createElement(tagName, isSVG = false) {
1998
1889
  return isSVG ? document.createElementNS(SVG_NAMESPACE, tagName) : document.createElement(tagName);
1999
1890
  }
2000
1891
  function Portal(props) {
2001
- const { useShadow } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
1892
+ const {
1893
+ useShadow
1894
+ } = props, marker = document.createTextNode(""), mount = () => props.mount || document.body, owner = getOwner();
2002
1895
  let content;
2003
1896
  let hydrating = !!sharedConfig.context;
2004
- createEffect(
2005
- () => {
2006
- if (hydrating)
2007
- getOwner().user = hydrating = false;
2008
- content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
2009
- const el = mount();
2010
- if (el instanceof HTMLHeadElement) {
2011
- const [clean, setClean] = createSignal(false);
2012
- const cleanup = () => setClean(true);
2013
- createRoot((dispose2) => insert(el, () => !clean() ? content() : dispose2(), null));
2014
- onCleanup(cleanup);
2015
- } else {
2016
- const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
2017
- mode: "open"
2018
- }) : container;
2019
- Object.defineProperty(container, "_$host", {
2020
- get() {
2021
- return marker.parentNode;
2022
- },
2023
- configurable: true
2024
- });
2025
- insert(renderRoot, content);
2026
- el.appendChild(container);
2027
- props.ref && props.ref(container);
2028
- onCleanup(() => el.removeChild(container));
2029
- }
2030
- },
2031
- void 0,
2032
- {
2033
- render: !hydrating
1897
+ createEffect(() => {
1898
+ if (hydrating)
1899
+ getOwner().user = hydrating = false;
1900
+ content || (content = runWithOwner(owner, () => createMemo(() => props.children)));
1901
+ const el = mount();
1902
+ if (el instanceof HTMLHeadElement) {
1903
+ const [clean, setClean] = createSignal(false);
1904
+ const cleanup = () => setClean(true);
1905
+ createRoot((dispose2) => insert(el, () => !clean() ? content() : dispose2(), null));
1906
+ onCleanup(cleanup);
1907
+ } else {
1908
+ const container = createElement(props.isSVG ? "g" : "div", props.isSVG), renderRoot = useShadow && container.attachShadow ? container.attachShadow({
1909
+ mode: "open"
1910
+ }) : container;
1911
+ Object.defineProperty(container, "_$host", {
1912
+ get() {
1913
+ return marker.parentNode;
1914
+ },
1915
+ configurable: true
1916
+ });
1917
+ insert(renderRoot, content);
1918
+ el.appendChild(container);
1919
+ props.ref && props.ref(container);
1920
+ onCleanup(() => el.removeChild(container));
2034
1921
  }
2035
- );
1922
+ }, void 0, {
1923
+ render: !hydrating
1924
+ });
2036
1925
  return marker;
2037
1926
  }
2038
1927
  function Dynamic(props) {
@@ -2688,15 +2577,12 @@ var walker = (object, identities, superJson, dedupe, path = [], objectsInThisPat
2688
2577
  return result;
2689
2578
  };
2690
2579
 
2691
- // ../../node_modules/.pnpm/is-what@4.1.15/node_modules/is-what/dist/index.js
2580
+ // ../../node_modules/.pnpm/is-what@4.1.16/node_modules/is-what/dist/index.js
2692
2581
  function getType2(payload) {
2693
2582
  return Object.prototype.toString.call(payload).slice(8, -1);
2694
2583
  }
2695
- function isUndefined2(payload) {
2696
- return getType2(payload) === "Undefined";
2697
- }
2698
- function isNull2(payload) {
2699
- return getType2(payload) === "Null";
2584
+ function isArray2(payload) {
2585
+ return getType2(payload) === "Array";
2700
2586
  }
2701
2587
  function isPlainObject2(payload) {
2702
2588
  if (getType2(payload) !== "Object")
@@ -2704,13 +2590,16 @@ function isPlainObject2(payload) {
2704
2590
  const prototype = Object.getPrototypeOf(payload);
2705
2591
  return !!prototype && prototype.constructor === Object && prototype === Object.prototype;
2706
2592
  }
2707
- function isArray2(payload) {
2708
- return getType2(payload) === "Array";
2593
+ function isNull2(payload) {
2594
+ return getType2(payload) === "Null";
2709
2595
  }
2710
- var isNullOrUndefined = isOneOf(isNull2, isUndefined2);
2711
2596
  function isOneOf(a, b, c, d, e) {
2712
2597
  return (value) => a(value) || b(value) || !!c && c(value) || !!d && d(value) || !!e && e(value);
2713
2598
  }
2599
+ function isUndefined2(payload) {
2600
+ return getType2(payload) === "Undefined";
2601
+ }
2602
+ var isNullOrUndefined = isOneOf(isNull2, isUndefined2);
2714
2603
 
2715
2604
  // ../../node_modules/.pnpm/copy-anything@3.0.5/node_modules/copy-anything/dist/index.js
2716
2605
  function assignProp2(carry, key, newVal, originalObject, includeNonenumerable) {