@livestore/solid 0.4.0-dev.21 → 0.4.0-dev.23

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.
Files changed (94) hide show
  1. package/dist/.tsbuildinfo +1 -1
  2. package/dist/StoreRegistryContext.d.ts +56 -0
  3. package/dist/StoreRegistryContext.d.ts.map +1 -0
  4. package/dist/StoreRegistryContext.jsx +60 -0
  5. package/dist/StoreRegistryContext.jsx.map +1 -0
  6. package/dist/__tests__/fixture.d.ts +14 -0
  7. package/dist/__tests__/fixture.d.ts.map +1 -0
  8. package/dist/__tests__/fixture.jsx +13 -0
  9. package/dist/__tests__/fixture.jsx.map +1 -0
  10. package/dist/experimental/components/LiveList.d.ts +24 -0
  11. package/dist/experimental/components/LiveList.d.ts.map +1 -0
  12. package/dist/experimental/components/LiveList.jsx +24 -0
  13. package/dist/experimental/components/LiveList.jsx.map +1 -0
  14. package/dist/experimental/mod.d.ts +2 -0
  15. package/dist/experimental/mod.d.ts.map +1 -0
  16. package/dist/experimental/mod.js +2 -0
  17. package/dist/experimental/mod.js.map +1 -0
  18. package/dist/mod.d.ts +6 -2
  19. package/dist/mod.d.ts.map +1 -1
  20. package/dist/mod.js +4 -2
  21. package/dist/mod.js.map +1 -1
  22. package/dist/useClientDocument.client.test.d.ts +2 -0
  23. package/dist/useClientDocument.client.test.d.ts.map +1 -0
  24. package/dist/useClientDocument.client.test.jsx +177 -0
  25. package/dist/useClientDocument.client.test.jsx.map +1 -0
  26. package/dist/useClientDocument.d.ts +71 -0
  27. package/dist/useClientDocument.d.ts.map +1 -0
  28. package/dist/useClientDocument.js +74 -0
  29. package/dist/useClientDocument.js.map +1 -0
  30. package/dist/useClientDocument.server.test.d.ts +6 -0
  31. package/dist/useClientDocument.server.test.d.ts.map +1 -0
  32. package/dist/useClientDocument.server.test.jsx +76 -0
  33. package/dist/useClientDocument.server.test.jsx.map +1 -0
  34. package/dist/useQuery.client.test.d.ts +2 -0
  35. package/dist/useQuery.client.test.d.ts.map +1 -0
  36. package/dist/useQuery.client.test.jsx +165 -0
  37. package/dist/useQuery.client.test.jsx.map +1 -0
  38. package/dist/useQuery.d.ts +32 -0
  39. package/dist/useQuery.d.ts.map +1 -0
  40. package/dist/useQuery.js +64 -0
  41. package/dist/useQuery.js.map +1 -0
  42. package/dist/useQuery.server.test.d.ts +6 -0
  43. package/dist/useQuery.server.test.d.ts.map +1 -0
  44. package/dist/useQuery.server.test.jsx +88 -0
  45. package/dist/useQuery.server.test.jsx.map +1 -0
  46. package/dist/useStore.client.test.d.ts +2 -0
  47. package/dist/useStore.client.test.d.ts.map +1 -0
  48. package/dist/useStore.client.test.jsx +438 -0
  49. package/dist/useStore.client.test.jsx.map +1 -0
  50. package/dist/useStore.d.ts +91 -0
  51. package/dist/useStore.d.ts.map +1 -0
  52. package/dist/useStore.js +94 -0
  53. package/dist/useStore.js.map +1 -0
  54. package/dist/useStore.server.test.d.ts +6 -0
  55. package/dist/useStore.server.test.d.ts.map +1 -0
  56. package/dist/useStore.server.test.jsx +56 -0
  57. package/dist/useStore.server.test.jsx.map +1 -0
  58. package/dist/utils.d.ts +4 -0
  59. package/dist/utils.d.ts.map +1 -0
  60. package/dist/utils.js +7 -0
  61. package/dist/utils.js.map +1 -0
  62. package/dist/whenever.d.ts +32 -0
  63. package/dist/whenever.d.ts.map +1 -0
  64. package/dist/whenever.js +51 -0
  65. package/dist/whenever.js.map +1 -0
  66. package/package.json +65 -17
  67. package/src/StoreRegistryContext.tsx +70 -0
  68. package/src/__snapshots__/useClientDocument.client.test.tsx.snap +570 -0
  69. package/src/__snapshots__/useQuery.client.test.tsx.snap +1550 -0
  70. package/src/__tests__/fixture.tsx +42 -0
  71. package/src/experimental/components/LiveList.tsx +54 -0
  72. package/src/experimental/mod.ts +1 -0
  73. package/src/mod.ts +6 -2
  74. package/src/useClientDocument.client.test.tsx +299 -0
  75. package/src/useClientDocument.server.test.tsx +107 -0
  76. package/src/useClientDocument.ts +146 -0
  77. package/src/useQuery.client.test.tsx +293 -0
  78. package/src/useQuery.server.test.tsx +128 -0
  79. package/src/useQuery.ts +115 -0
  80. package/src/useStore.client.test.tsx +632 -0
  81. package/src/useStore.server.test.tsx +70 -0
  82. package/src/useStore.ts +179 -0
  83. package/src/utils.ts +10 -0
  84. package/src/whenever.ts +80 -0
  85. package/dist/query.d.ts +0 -4
  86. package/dist/query.d.ts.map +0 -1
  87. package/dist/query.js +0 -15
  88. package/dist/query.js.map +0 -1
  89. package/dist/store.d.ts +0 -6
  90. package/dist/store.d.ts.map +0 -1
  91. package/dist/store.js +0 -99
  92. package/dist/store.js.map +0 -1
  93. package/src/query.ts +0 -22
  94. package/src/store.ts +0 -196
@@ -0,0 +1,1550 @@
1
+ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
2
+
3
+ exports[`useQuery > filtered dependency query 1`] = `
4
+ {
5
+ "atoms": [
6
+ {
7
+ "_tag": "ref",
8
+ "id": "node-1",
9
+ "isDestroyed": false,
10
+ "isDirty": false,
11
+ "label": "tableRef:todos",
12
+ "meta": {
13
+ "liveStoreRefType": "table",
14
+ },
15
+ "previousResult": {
16
+ "_tag": "Some",
17
+ "value": "null",
18
+ },
19
+ "refreshes": 1,
20
+ "sub": [],
21
+ "super": [
22
+ "node-10",
23
+ ],
24
+ },
25
+ {
26
+ "_tag": "ref",
27
+ "id": "node-2",
28
+ "isDestroyed": false,
29
+ "isDirty": false,
30
+ "label": "tableRef:app",
31
+ "meta": {
32
+ "liveStoreRefType": "table",
33
+ },
34
+ "previousResult": {
35
+ "_tag": "Some",
36
+ "value": "null",
37
+ },
38
+ "refreshes": 0,
39
+ "sub": [],
40
+ "super": [],
41
+ },
42
+ {
43
+ "_tag": "ref",
44
+ "id": "node-3",
45
+ "isDestroyed": false,
46
+ "isDirty": false,
47
+ "label": "tableRef:UserInfo",
48
+ "meta": {
49
+ "liveStoreRefType": "table",
50
+ },
51
+ "previousResult": {
52
+ "_tag": "Some",
53
+ "value": "null",
54
+ },
55
+ "refreshes": 0,
56
+ "sub": [],
57
+ "super": [],
58
+ },
59
+ {
60
+ "_tag": "ref",
61
+ "id": "node-4",
62
+ "isDestroyed": false,
63
+ "isDirty": false,
64
+ "label": "tableRef:AppRouter",
65
+ "meta": {
66
+ "liveStoreRefType": "table",
67
+ },
68
+ "previousResult": {
69
+ "_tag": "Some",
70
+ "value": "null",
71
+ },
72
+ "refreshes": 0,
73
+ "sub": [],
74
+ "super": [],
75
+ },
76
+ {
77
+ "_tag": "ref",
78
+ "id": "node-5",
79
+ "isDestroyed": false,
80
+ "isDirty": false,
81
+ "label": "tableRef:Kv",
82
+ "meta": {
83
+ "liveStoreRefType": "table",
84
+ },
85
+ "previousResult": {
86
+ "_tag": "Some",
87
+ "value": "null",
88
+ },
89
+ "refreshes": 0,
90
+ "sub": [],
91
+ "super": [],
92
+ },
93
+ {
94
+ "_tag": "ref",
95
+ "id": "node-6",
96
+ "isDestroyed": false,
97
+ "isDirty": false,
98
+ "label": "tableRef:__livestore_schema",
99
+ "meta": {
100
+ "liveStoreRefType": "table",
101
+ },
102
+ "previousResult": {
103
+ "_tag": "Some",
104
+ "value": "null",
105
+ },
106
+ "refreshes": 0,
107
+ "sub": [],
108
+ "super": [],
109
+ },
110
+ {
111
+ "_tag": "ref",
112
+ "id": "node-7",
113
+ "isDestroyed": false,
114
+ "isDirty": false,
115
+ "label": "tableRef:__livestore_schema_event_defs",
116
+ "meta": {
117
+ "liveStoreRefType": "table",
118
+ },
119
+ "previousResult": {
120
+ "_tag": "Some",
121
+ "value": "null",
122
+ },
123
+ "refreshes": 0,
124
+ "sub": [],
125
+ "super": [],
126
+ },
127
+ {
128
+ "_tag": "ref",
129
+ "id": "node-8",
130
+ "isDestroyed": false,
131
+ "isDirty": false,
132
+ "label": "tableRef:__livestore_session_changeset",
133
+ "meta": {
134
+ "liveStoreRefType": "table",
135
+ },
136
+ "previousResult": {
137
+ "_tag": "Some",
138
+ "value": "null",
139
+ },
140
+ "refreshes": 0,
141
+ "sub": [],
142
+ "super": [],
143
+ },
144
+ {
145
+ "_tag": "thunk",
146
+ "id": "node-9",
147
+ "isDestroyed": false,
148
+ "isDirty": false,
149
+ "label": "todo:query",
150
+ "meta": {
151
+ "liveStoreThunkType": "db.query",
152
+ },
153
+ "previousResult": {
154
+ "_tag": "Some",
155
+ "value": "{"query":"SELECT * FROM 'todos' WHERE \\"id\\" = ?","bindValues":["t1"],"queriedTables":{}}",
156
+ },
157
+ "recomputations": 1,
158
+ "sub": [
159
+ "node-11",
160
+ ],
161
+ "super": [
162
+ "node-10",
163
+ ],
164
+ },
165
+ {
166
+ "_tag": "thunk",
167
+ "id": "node-10",
168
+ "isDestroyed": false,
169
+ "isDirty": false,
170
+ "label": "todo:results",
171
+ "meta": {
172
+ "liveStoreThunkType": "db.result",
173
+ },
174
+ "previousResult": {
175
+ "_tag": "Some",
176
+ "value": "[{"id":"t1","text":"buy milk","completed":false}]",
177
+ },
178
+ "recomputations": 1,
179
+ "sub": [
180
+ "node-9",
181
+ "node-1",
182
+ ],
183
+ "super": [
184
+ "node-12",
185
+ ],
186
+ },
187
+ {
188
+ "_tag": "ref",
189
+ "id": "node-11",
190
+ "isDestroyed": false,
191
+ "isDirty": false,
192
+ "label": "id-filter",
193
+ "meta": undefined,
194
+ "previousResult": {
195
+ "_tag": "Some",
196
+ "value": ""t1"",
197
+ },
198
+ "refreshes": 0,
199
+ "sub": [],
200
+ "super": [
201
+ "node-9",
202
+ ],
203
+ },
204
+ ],
205
+ "deferredEffects": [],
206
+ "effects": [
207
+ {
208
+ "_tag": "effect",
209
+ "id": "node-12",
210
+ "invocations": 1,
211
+ "isDestroyed": false,
212
+ "label": "subscribe:SELECT * FROM 'todos' WHERE "id" = ?",
213
+ "sub": [
214
+ "node-10",
215
+ ],
216
+ },
217
+ ],
218
+ }
219
+ `;
220
+
221
+ exports[`useQuery > filtered dependency query 2`] = `
222
+ {
223
+ "atoms": [
224
+ {
225
+ "_tag": "ref",
226
+ "id": "node-1",
227
+ "isDestroyed": false,
228
+ "isDirty": false,
229
+ "label": "tableRef:todos",
230
+ "meta": {
231
+ "liveStoreRefType": "table",
232
+ },
233
+ "previousResult": {
234
+ "_tag": "Some",
235
+ "value": "null",
236
+ },
237
+ "refreshes": 2,
238
+ "sub": [],
239
+ "super": [
240
+ "node-10",
241
+ ],
242
+ },
243
+ {
244
+ "_tag": "ref",
245
+ "id": "node-2",
246
+ "isDestroyed": false,
247
+ "isDirty": false,
248
+ "label": "tableRef:app",
249
+ "meta": {
250
+ "liveStoreRefType": "table",
251
+ },
252
+ "previousResult": {
253
+ "_tag": "Some",
254
+ "value": "null",
255
+ },
256
+ "refreshes": 0,
257
+ "sub": [],
258
+ "super": [],
259
+ },
260
+ {
261
+ "_tag": "ref",
262
+ "id": "node-3",
263
+ "isDestroyed": false,
264
+ "isDirty": false,
265
+ "label": "tableRef:UserInfo",
266
+ "meta": {
267
+ "liveStoreRefType": "table",
268
+ },
269
+ "previousResult": {
270
+ "_tag": "Some",
271
+ "value": "null",
272
+ },
273
+ "refreshes": 0,
274
+ "sub": [],
275
+ "super": [],
276
+ },
277
+ {
278
+ "_tag": "ref",
279
+ "id": "node-4",
280
+ "isDestroyed": false,
281
+ "isDirty": false,
282
+ "label": "tableRef:AppRouter",
283
+ "meta": {
284
+ "liveStoreRefType": "table",
285
+ },
286
+ "previousResult": {
287
+ "_tag": "Some",
288
+ "value": "null",
289
+ },
290
+ "refreshes": 0,
291
+ "sub": [],
292
+ "super": [],
293
+ },
294
+ {
295
+ "_tag": "ref",
296
+ "id": "node-5",
297
+ "isDestroyed": false,
298
+ "isDirty": false,
299
+ "label": "tableRef:Kv",
300
+ "meta": {
301
+ "liveStoreRefType": "table",
302
+ },
303
+ "previousResult": {
304
+ "_tag": "Some",
305
+ "value": "null",
306
+ },
307
+ "refreshes": 0,
308
+ "sub": [],
309
+ "super": [],
310
+ },
311
+ {
312
+ "_tag": "ref",
313
+ "id": "node-6",
314
+ "isDestroyed": false,
315
+ "isDirty": false,
316
+ "label": "tableRef:__livestore_schema",
317
+ "meta": {
318
+ "liveStoreRefType": "table",
319
+ },
320
+ "previousResult": {
321
+ "_tag": "Some",
322
+ "value": "null",
323
+ },
324
+ "refreshes": 0,
325
+ "sub": [],
326
+ "super": [],
327
+ },
328
+ {
329
+ "_tag": "ref",
330
+ "id": "node-7",
331
+ "isDestroyed": false,
332
+ "isDirty": false,
333
+ "label": "tableRef:__livestore_schema_event_defs",
334
+ "meta": {
335
+ "liveStoreRefType": "table",
336
+ },
337
+ "previousResult": {
338
+ "_tag": "Some",
339
+ "value": "null",
340
+ },
341
+ "refreshes": 0,
342
+ "sub": [],
343
+ "super": [],
344
+ },
345
+ {
346
+ "_tag": "ref",
347
+ "id": "node-8",
348
+ "isDestroyed": false,
349
+ "isDirty": false,
350
+ "label": "tableRef:__livestore_session_changeset",
351
+ "meta": {
352
+ "liveStoreRefType": "table",
353
+ },
354
+ "previousResult": {
355
+ "_tag": "Some",
356
+ "value": "null",
357
+ },
358
+ "refreshes": 0,
359
+ "sub": [],
360
+ "super": [],
361
+ },
362
+ {
363
+ "_tag": "thunk",
364
+ "id": "node-9",
365
+ "isDestroyed": false,
366
+ "isDirty": false,
367
+ "label": "todo:query",
368
+ "meta": {
369
+ "liveStoreThunkType": "db.query",
370
+ },
371
+ "previousResult": {
372
+ "_tag": "Some",
373
+ "value": "{"query":"SELECT * FROM 'todos' WHERE \\"id\\" = ?","bindValues":["t1"],"queriedTables":{}}",
374
+ },
375
+ "recomputations": 1,
376
+ "sub": [
377
+ "node-11",
378
+ ],
379
+ "super": [
380
+ "node-10",
381
+ ],
382
+ },
383
+ {
384
+ "_tag": "thunk",
385
+ "id": "node-10",
386
+ "isDestroyed": false,
387
+ "isDirty": false,
388
+ "label": "todo:results",
389
+ "meta": {
390
+ "liveStoreThunkType": "db.result",
391
+ },
392
+ "previousResult": {
393
+ "_tag": "Some",
394
+ "value": "[{"id":"t1","text":"buy soy milk","completed":false}]",
395
+ },
396
+ "recomputations": 2,
397
+ "sub": [
398
+ "node-9",
399
+ "node-1",
400
+ ],
401
+ "super": [
402
+ "node-12",
403
+ ],
404
+ },
405
+ {
406
+ "_tag": "ref",
407
+ "id": "node-11",
408
+ "isDestroyed": false,
409
+ "isDirty": false,
410
+ "label": "id-filter",
411
+ "meta": undefined,
412
+ "previousResult": {
413
+ "_tag": "Some",
414
+ "value": ""t1"",
415
+ },
416
+ "refreshes": 0,
417
+ "sub": [],
418
+ "super": [
419
+ "node-9",
420
+ ],
421
+ },
422
+ ],
423
+ "deferredEffects": [],
424
+ "effects": [
425
+ {
426
+ "_tag": "effect",
427
+ "id": "node-12",
428
+ "invocations": 2,
429
+ "isDestroyed": false,
430
+ "label": "subscribe:SELECT * FROM 'todos' WHERE "id" = ?",
431
+ "sub": [
432
+ "node-10",
433
+ ],
434
+ },
435
+ ],
436
+ }
437
+ `;
438
+
439
+ exports[`useQuery > filtered dependency query 3`] = `
440
+ {
441
+ "atoms": [
442
+ {
443
+ "_tag": "ref",
444
+ "id": "node-1",
445
+ "isDestroyed": false,
446
+ "isDirty": false,
447
+ "label": "tableRef:todos",
448
+ "meta": {
449
+ "liveStoreRefType": "table",
450
+ },
451
+ "previousResult": {
452
+ "_tag": "Some",
453
+ "value": "null",
454
+ },
455
+ "refreshes": 2,
456
+ "sub": [],
457
+ "super": [
458
+ "node-10",
459
+ ],
460
+ },
461
+ {
462
+ "_tag": "ref",
463
+ "id": "node-2",
464
+ "isDestroyed": false,
465
+ "isDirty": false,
466
+ "label": "tableRef:app",
467
+ "meta": {
468
+ "liveStoreRefType": "table",
469
+ },
470
+ "previousResult": {
471
+ "_tag": "Some",
472
+ "value": "null",
473
+ },
474
+ "refreshes": 0,
475
+ "sub": [],
476
+ "super": [],
477
+ },
478
+ {
479
+ "_tag": "ref",
480
+ "id": "node-3",
481
+ "isDestroyed": false,
482
+ "isDirty": false,
483
+ "label": "tableRef:UserInfo",
484
+ "meta": {
485
+ "liveStoreRefType": "table",
486
+ },
487
+ "previousResult": {
488
+ "_tag": "Some",
489
+ "value": "null",
490
+ },
491
+ "refreshes": 0,
492
+ "sub": [],
493
+ "super": [],
494
+ },
495
+ {
496
+ "_tag": "ref",
497
+ "id": "node-4",
498
+ "isDestroyed": false,
499
+ "isDirty": false,
500
+ "label": "tableRef:AppRouter",
501
+ "meta": {
502
+ "liveStoreRefType": "table",
503
+ },
504
+ "previousResult": {
505
+ "_tag": "Some",
506
+ "value": "null",
507
+ },
508
+ "refreshes": 0,
509
+ "sub": [],
510
+ "super": [],
511
+ },
512
+ {
513
+ "_tag": "ref",
514
+ "id": "node-5",
515
+ "isDestroyed": false,
516
+ "isDirty": false,
517
+ "label": "tableRef:Kv",
518
+ "meta": {
519
+ "liveStoreRefType": "table",
520
+ },
521
+ "previousResult": {
522
+ "_tag": "Some",
523
+ "value": "null",
524
+ },
525
+ "refreshes": 0,
526
+ "sub": [],
527
+ "super": [],
528
+ },
529
+ {
530
+ "_tag": "ref",
531
+ "id": "node-6",
532
+ "isDestroyed": false,
533
+ "isDirty": false,
534
+ "label": "tableRef:__livestore_schema",
535
+ "meta": {
536
+ "liveStoreRefType": "table",
537
+ },
538
+ "previousResult": {
539
+ "_tag": "Some",
540
+ "value": "null",
541
+ },
542
+ "refreshes": 0,
543
+ "sub": [],
544
+ "super": [],
545
+ },
546
+ {
547
+ "_tag": "ref",
548
+ "id": "node-7",
549
+ "isDestroyed": false,
550
+ "isDirty": false,
551
+ "label": "tableRef:__livestore_schema_event_defs",
552
+ "meta": {
553
+ "liveStoreRefType": "table",
554
+ },
555
+ "previousResult": {
556
+ "_tag": "Some",
557
+ "value": "null",
558
+ },
559
+ "refreshes": 0,
560
+ "sub": [],
561
+ "super": [],
562
+ },
563
+ {
564
+ "_tag": "ref",
565
+ "id": "node-8",
566
+ "isDestroyed": false,
567
+ "isDirty": false,
568
+ "label": "tableRef:__livestore_session_changeset",
569
+ "meta": {
570
+ "liveStoreRefType": "table",
571
+ },
572
+ "previousResult": {
573
+ "_tag": "Some",
574
+ "value": "null",
575
+ },
576
+ "refreshes": 0,
577
+ "sub": [],
578
+ "super": [],
579
+ },
580
+ {
581
+ "_tag": "thunk",
582
+ "id": "node-9",
583
+ "isDestroyed": false,
584
+ "isDirty": false,
585
+ "label": "todo:query",
586
+ "meta": {
587
+ "liveStoreThunkType": "db.query",
588
+ },
589
+ "previousResult": {
590
+ "_tag": "Some",
591
+ "value": "{"query":"SELECT * FROM 'todos' WHERE \\"id\\" = ?","bindValues":["t2"],"queriedTables":{}}",
592
+ },
593
+ "recomputations": 2,
594
+ "sub": [
595
+ "node-11",
596
+ ],
597
+ "super": [
598
+ "node-10",
599
+ ],
600
+ },
601
+ {
602
+ "_tag": "thunk",
603
+ "id": "node-10",
604
+ "isDestroyed": false,
605
+ "isDirty": false,
606
+ "label": "todo:results",
607
+ "meta": {
608
+ "liveStoreThunkType": "db.result",
609
+ },
610
+ "previousResult": {
611
+ "_tag": "Some",
612
+ "value": "[{"id":"t2","text":"buy eggs","completed":false}]",
613
+ },
614
+ "recomputations": 3,
615
+ "sub": [
616
+ "node-9",
617
+ "node-1",
618
+ ],
619
+ "super": [
620
+ "node-12",
621
+ ],
622
+ },
623
+ {
624
+ "_tag": "ref",
625
+ "id": "node-11",
626
+ "isDestroyed": false,
627
+ "isDirty": false,
628
+ "label": "id-filter",
629
+ "meta": undefined,
630
+ "previousResult": {
631
+ "_tag": "Some",
632
+ "value": ""t2"",
633
+ },
634
+ "refreshes": 1,
635
+ "sub": [],
636
+ "super": [
637
+ "node-9",
638
+ ],
639
+ },
640
+ ],
641
+ "deferredEffects": [],
642
+ "effects": [
643
+ {
644
+ "_tag": "effect",
645
+ "id": "node-12",
646
+ "invocations": 3,
647
+ "isDestroyed": false,
648
+ "label": "subscribe:SELECT * FROM 'todos' WHERE "id" = ?",
649
+ "sub": [
650
+ "node-10",
651
+ ],
652
+ },
653
+ ],
654
+ }
655
+ `;
656
+
657
+ exports[`useQuery > same \`useQuery\` hook invoked with different queries > 1: after first render 1`] = `
658
+ {
659
+ "atoms": [
660
+ {
661
+ "_tag": "ref",
662
+ "id": "node-1",
663
+ "isDestroyed": false,
664
+ "isDirty": false,
665
+ "label": "tableRef:todos",
666
+ "meta": {
667
+ "liveStoreRefType": "table",
668
+ },
669
+ "previousResult": {
670
+ "_tag": "Some",
671
+ "value": "null",
672
+ },
673
+ "refreshes": 1,
674
+ "sub": [],
675
+ "super": [
676
+ "node-9",
677
+ ],
678
+ },
679
+ {
680
+ "_tag": "ref",
681
+ "id": "node-2",
682
+ "isDestroyed": false,
683
+ "isDirty": false,
684
+ "label": "tableRef:app",
685
+ "meta": {
686
+ "liveStoreRefType": "table",
687
+ },
688
+ "previousResult": {
689
+ "_tag": "Some",
690
+ "value": "null",
691
+ },
692
+ "refreshes": 0,
693
+ "sub": [],
694
+ "super": [],
695
+ },
696
+ {
697
+ "_tag": "ref",
698
+ "id": "node-3",
699
+ "isDestroyed": false,
700
+ "isDirty": false,
701
+ "label": "tableRef:UserInfo",
702
+ "meta": {
703
+ "liveStoreRefType": "table",
704
+ },
705
+ "previousResult": {
706
+ "_tag": "Some",
707
+ "value": "null",
708
+ },
709
+ "refreshes": 0,
710
+ "sub": [],
711
+ "super": [],
712
+ },
713
+ {
714
+ "_tag": "ref",
715
+ "id": "node-4",
716
+ "isDestroyed": false,
717
+ "isDirty": false,
718
+ "label": "tableRef:AppRouter",
719
+ "meta": {
720
+ "liveStoreRefType": "table",
721
+ },
722
+ "previousResult": {
723
+ "_tag": "Some",
724
+ "value": "null",
725
+ },
726
+ "refreshes": 0,
727
+ "sub": [],
728
+ "super": [],
729
+ },
730
+ {
731
+ "_tag": "ref",
732
+ "id": "node-5",
733
+ "isDestroyed": false,
734
+ "isDirty": false,
735
+ "label": "tableRef:Kv",
736
+ "meta": {
737
+ "liveStoreRefType": "table",
738
+ },
739
+ "previousResult": {
740
+ "_tag": "Some",
741
+ "value": "null",
742
+ },
743
+ "refreshes": 0,
744
+ "sub": [],
745
+ "super": [],
746
+ },
747
+ {
748
+ "_tag": "ref",
749
+ "id": "node-6",
750
+ "isDestroyed": false,
751
+ "isDirty": false,
752
+ "label": "tableRef:__livestore_schema",
753
+ "meta": {
754
+ "liveStoreRefType": "table",
755
+ },
756
+ "previousResult": {
757
+ "_tag": "Some",
758
+ "value": "null",
759
+ },
760
+ "refreshes": 0,
761
+ "sub": [],
762
+ "super": [],
763
+ },
764
+ {
765
+ "_tag": "ref",
766
+ "id": "node-7",
767
+ "isDestroyed": false,
768
+ "isDirty": false,
769
+ "label": "tableRef:__livestore_schema_event_defs",
770
+ "meta": {
771
+ "liveStoreRefType": "table",
772
+ },
773
+ "previousResult": {
774
+ "_tag": "Some",
775
+ "value": "null",
776
+ },
777
+ "refreshes": 0,
778
+ "sub": [],
779
+ "super": [],
780
+ },
781
+ {
782
+ "_tag": "ref",
783
+ "id": "node-8",
784
+ "isDestroyed": false,
785
+ "isDirty": false,
786
+ "label": "tableRef:__livestore_session_changeset",
787
+ "meta": {
788
+ "liveStoreRefType": "table",
789
+ },
790
+ "previousResult": {
791
+ "_tag": "Some",
792
+ "value": "null",
793
+ },
794
+ "refreshes": 0,
795
+ "sub": [],
796
+ "super": [],
797
+ },
798
+ {
799
+ "_tag": "thunk",
800
+ "id": "node-9",
801
+ "isDestroyed": false,
802
+ "isDirty": false,
803
+ "label": "libraryTracksView1:results",
804
+ "meta": {
805
+ "liveStoreThunkType": "db.result",
806
+ },
807
+ "previousResult": {
808
+ "_tag": "Some",
809
+ "value": "[{"id":"t1","text":"buy milk","completed":false}]",
810
+ },
811
+ "recomputations": 1,
812
+ "sub": [
813
+ "node-1",
814
+ ],
815
+ "super": [
816
+ "node-10",
817
+ ],
818
+ },
819
+ ],
820
+ "deferredEffects": [],
821
+ "effects": [
822
+ {
823
+ "_tag": "effect",
824
+ "id": "node-10",
825
+ "invocations": 1,
826
+ "isDestroyed": false,
827
+ "label": "subscribe:libraryTracksView1",
828
+ "sub": [
829
+ "node-9",
830
+ ],
831
+ },
832
+ ],
833
+ }
834
+ `;
835
+
836
+ exports[`useQuery > same \`useQuery\` hook invoked with different queries > 2: after first commit 1`] = `
837
+ {
838
+ "atoms": [
839
+ {
840
+ "_tag": "ref",
841
+ "id": "node-1",
842
+ "isDestroyed": false,
843
+ "isDirty": false,
844
+ "label": "tableRef:todos",
845
+ "meta": {
846
+ "liveStoreRefType": "table",
847
+ },
848
+ "previousResult": {
849
+ "_tag": "Some",
850
+ "value": "null",
851
+ },
852
+ "refreshes": 2,
853
+ "sub": [],
854
+ "super": [
855
+ "node-9",
856
+ ],
857
+ },
858
+ {
859
+ "_tag": "ref",
860
+ "id": "node-2",
861
+ "isDestroyed": false,
862
+ "isDirty": false,
863
+ "label": "tableRef:app",
864
+ "meta": {
865
+ "liveStoreRefType": "table",
866
+ },
867
+ "previousResult": {
868
+ "_tag": "Some",
869
+ "value": "null",
870
+ },
871
+ "refreshes": 0,
872
+ "sub": [],
873
+ "super": [],
874
+ },
875
+ {
876
+ "_tag": "ref",
877
+ "id": "node-3",
878
+ "isDestroyed": false,
879
+ "isDirty": false,
880
+ "label": "tableRef:UserInfo",
881
+ "meta": {
882
+ "liveStoreRefType": "table",
883
+ },
884
+ "previousResult": {
885
+ "_tag": "Some",
886
+ "value": "null",
887
+ },
888
+ "refreshes": 0,
889
+ "sub": [],
890
+ "super": [],
891
+ },
892
+ {
893
+ "_tag": "ref",
894
+ "id": "node-4",
895
+ "isDestroyed": false,
896
+ "isDirty": false,
897
+ "label": "tableRef:AppRouter",
898
+ "meta": {
899
+ "liveStoreRefType": "table",
900
+ },
901
+ "previousResult": {
902
+ "_tag": "Some",
903
+ "value": "null",
904
+ },
905
+ "refreshes": 0,
906
+ "sub": [],
907
+ "super": [],
908
+ },
909
+ {
910
+ "_tag": "ref",
911
+ "id": "node-5",
912
+ "isDestroyed": false,
913
+ "isDirty": false,
914
+ "label": "tableRef:Kv",
915
+ "meta": {
916
+ "liveStoreRefType": "table",
917
+ },
918
+ "previousResult": {
919
+ "_tag": "Some",
920
+ "value": "null",
921
+ },
922
+ "refreshes": 0,
923
+ "sub": [],
924
+ "super": [],
925
+ },
926
+ {
927
+ "_tag": "ref",
928
+ "id": "node-6",
929
+ "isDestroyed": false,
930
+ "isDirty": false,
931
+ "label": "tableRef:__livestore_schema",
932
+ "meta": {
933
+ "liveStoreRefType": "table",
934
+ },
935
+ "previousResult": {
936
+ "_tag": "Some",
937
+ "value": "null",
938
+ },
939
+ "refreshes": 0,
940
+ "sub": [],
941
+ "super": [],
942
+ },
943
+ {
944
+ "_tag": "ref",
945
+ "id": "node-7",
946
+ "isDestroyed": false,
947
+ "isDirty": false,
948
+ "label": "tableRef:__livestore_schema_event_defs",
949
+ "meta": {
950
+ "liveStoreRefType": "table",
951
+ },
952
+ "previousResult": {
953
+ "_tag": "Some",
954
+ "value": "null",
955
+ },
956
+ "refreshes": 0,
957
+ "sub": [],
958
+ "super": [],
959
+ },
960
+ {
961
+ "_tag": "ref",
962
+ "id": "node-8",
963
+ "isDestroyed": false,
964
+ "isDirty": false,
965
+ "label": "tableRef:__livestore_session_changeset",
966
+ "meta": {
967
+ "liveStoreRefType": "table",
968
+ },
969
+ "previousResult": {
970
+ "_tag": "Some",
971
+ "value": "null",
972
+ },
973
+ "refreshes": 0,
974
+ "sub": [],
975
+ "super": [],
976
+ },
977
+ {
978
+ "_tag": "thunk",
979
+ "id": "node-9",
980
+ "isDestroyed": false,
981
+ "isDirty": false,
982
+ "label": "libraryTracksView1:results",
983
+ "meta": {
984
+ "liveStoreThunkType": "db.result",
985
+ },
986
+ "previousResult": {
987
+ "_tag": "Some",
988
+ "value": "[{"id":"t1","text":"buy soy milk","completed":false}]",
989
+ },
990
+ "recomputations": 2,
991
+ "sub": [
992
+ "node-1",
993
+ ],
994
+ "super": [
995
+ "node-10",
996
+ ],
997
+ },
998
+ ],
999
+ "deferredEffects": [],
1000
+ "effects": [
1001
+ {
1002
+ "_tag": "effect",
1003
+ "id": "node-10",
1004
+ "invocations": 2,
1005
+ "isDestroyed": false,
1006
+ "label": "subscribe:libraryTracksView1",
1007
+ "sub": [
1008
+ "node-9",
1009
+ ],
1010
+ },
1011
+ ],
1012
+ }
1013
+ `;
1014
+
1015
+ exports[`useQuery > same \`useQuery\` hook invoked with different queries > 3: after forced rerender 1`] = `
1016
+ {
1017
+ "atoms": [
1018
+ {
1019
+ "_tag": "ref",
1020
+ "id": "node-1",
1021
+ "isDestroyed": false,
1022
+ "isDirty": false,
1023
+ "label": "tableRef:todos",
1024
+ "meta": {
1025
+ "liveStoreRefType": "table",
1026
+ },
1027
+ "previousResult": {
1028
+ "_tag": "Some",
1029
+ "value": "null",
1030
+ },
1031
+ "refreshes": 2,
1032
+ "sub": [],
1033
+ "super": [
1034
+ "node-11",
1035
+ ],
1036
+ },
1037
+ {
1038
+ "_tag": "ref",
1039
+ "id": "node-2",
1040
+ "isDestroyed": false,
1041
+ "isDirty": false,
1042
+ "label": "tableRef:app",
1043
+ "meta": {
1044
+ "liveStoreRefType": "table",
1045
+ },
1046
+ "previousResult": {
1047
+ "_tag": "Some",
1048
+ "value": "null",
1049
+ },
1050
+ "refreshes": 0,
1051
+ "sub": [],
1052
+ "super": [],
1053
+ },
1054
+ {
1055
+ "_tag": "ref",
1056
+ "id": "node-3",
1057
+ "isDestroyed": false,
1058
+ "isDirty": false,
1059
+ "label": "tableRef:UserInfo",
1060
+ "meta": {
1061
+ "liveStoreRefType": "table",
1062
+ },
1063
+ "previousResult": {
1064
+ "_tag": "Some",
1065
+ "value": "null",
1066
+ },
1067
+ "refreshes": 0,
1068
+ "sub": [],
1069
+ "super": [],
1070
+ },
1071
+ {
1072
+ "_tag": "ref",
1073
+ "id": "node-4",
1074
+ "isDestroyed": false,
1075
+ "isDirty": false,
1076
+ "label": "tableRef:AppRouter",
1077
+ "meta": {
1078
+ "liveStoreRefType": "table",
1079
+ },
1080
+ "previousResult": {
1081
+ "_tag": "Some",
1082
+ "value": "null",
1083
+ },
1084
+ "refreshes": 0,
1085
+ "sub": [],
1086
+ "super": [],
1087
+ },
1088
+ {
1089
+ "_tag": "ref",
1090
+ "id": "node-5",
1091
+ "isDestroyed": false,
1092
+ "isDirty": false,
1093
+ "label": "tableRef:Kv",
1094
+ "meta": {
1095
+ "liveStoreRefType": "table",
1096
+ },
1097
+ "previousResult": {
1098
+ "_tag": "Some",
1099
+ "value": "null",
1100
+ },
1101
+ "refreshes": 0,
1102
+ "sub": [],
1103
+ "super": [],
1104
+ },
1105
+ {
1106
+ "_tag": "ref",
1107
+ "id": "node-6",
1108
+ "isDestroyed": false,
1109
+ "isDirty": false,
1110
+ "label": "tableRef:__livestore_schema",
1111
+ "meta": {
1112
+ "liveStoreRefType": "table",
1113
+ },
1114
+ "previousResult": {
1115
+ "_tag": "Some",
1116
+ "value": "null",
1117
+ },
1118
+ "refreshes": 0,
1119
+ "sub": [],
1120
+ "super": [],
1121
+ },
1122
+ {
1123
+ "_tag": "ref",
1124
+ "id": "node-7",
1125
+ "isDestroyed": false,
1126
+ "isDirty": false,
1127
+ "label": "tableRef:__livestore_schema_event_defs",
1128
+ "meta": {
1129
+ "liveStoreRefType": "table",
1130
+ },
1131
+ "previousResult": {
1132
+ "_tag": "Some",
1133
+ "value": "null",
1134
+ },
1135
+ "refreshes": 0,
1136
+ "sub": [],
1137
+ "super": [],
1138
+ },
1139
+ {
1140
+ "_tag": "ref",
1141
+ "id": "node-8",
1142
+ "isDestroyed": false,
1143
+ "isDirty": false,
1144
+ "label": "tableRef:__livestore_session_changeset",
1145
+ "meta": {
1146
+ "liveStoreRefType": "table",
1147
+ },
1148
+ "previousResult": {
1149
+ "_tag": "Some",
1150
+ "value": "null",
1151
+ },
1152
+ "refreshes": 0,
1153
+ "sub": [],
1154
+ "super": [],
1155
+ },
1156
+ {
1157
+ "_tag": "thunk",
1158
+ "id": "node-11",
1159
+ "isDestroyed": false,
1160
+ "isDirty": false,
1161
+ "label": "libraryTracksView2:results",
1162
+ "meta": {
1163
+ "liveStoreThunkType": "db.result",
1164
+ },
1165
+ "previousResult": {
1166
+ "_tag": "Some",
1167
+ "value": "[{"id":"t2","text":"buy eggs","completed":false}]",
1168
+ },
1169
+ "recomputations": 1,
1170
+ "sub": [
1171
+ "node-1",
1172
+ ],
1173
+ "super": [
1174
+ "node-12",
1175
+ ],
1176
+ },
1177
+ ],
1178
+ "deferredEffects": [],
1179
+ "effects": [
1180
+ {
1181
+ "_tag": "effect",
1182
+ "id": "node-12",
1183
+ "invocations": 1,
1184
+ "isDestroyed": false,
1185
+ "label": "subscribe:libraryTracksView2",
1186
+ "sub": [
1187
+ "node-11",
1188
+ ],
1189
+ },
1190
+ ],
1191
+ }
1192
+ `;
1193
+
1194
+ exports[`useQuery > simple 1`] = `
1195
+ {
1196
+ "atoms": [
1197
+ {
1198
+ "_tag": "ref",
1199
+ "id": "node-1",
1200
+ "isDestroyed": false,
1201
+ "isDirty": false,
1202
+ "label": "tableRef:todos",
1203
+ "meta": {
1204
+ "liveStoreRefType": "table",
1205
+ },
1206
+ "previousResult": {
1207
+ "_tag": "Some",
1208
+ "value": "null",
1209
+ },
1210
+ "refreshes": 0,
1211
+ "sub": [],
1212
+ "super": [
1213
+ "node-9",
1214
+ ],
1215
+ },
1216
+ {
1217
+ "_tag": "ref",
1218
+ "id": "node-2",
1219
+ "isDestroyed": false,
1220
+ "isDirty": false,
1221
+ "label": "tableRef:app",
1222
+ "meta": {
1223
+ "liveStoreRefType": "table",
1224
+ },
1225
+ "previousResult": {
1226
+ "_tag": "Some",
1227
+ "value": "null",
1228
+ },
1229
+ "refreshes": 0,
1230
+ "sub": [],
1231
+ "super": [],
1232
+ },
1233
+ {
1234
+ "_tag": "ref",
1235
+ "id": "node-3",
1236
+ "isDestroyed": false,
1237
+ "isDirty": false,
1238
+ "label": "tableRef:UserInfo",
1239
+ "meta": {
1240
+ "liveStoreRefType": "table",
1241
+ },
1242
+ "previousResult": {
1243
+ "_tag": "Some",
1244
+ "value": "null",
1245
+ },
1246
+ "refreshes": 0,
1247
+ "sub": [],
1248
+ "super": [],
1249
+ },
1250
+ {
1251
+ "_tag": "ref",
1252
+ "id": "node-4",
1253
+ "isDestroyed": false,
1254
+ "isDirty": false,
1255
+ "label": "tableRef:AppRouter",
1256
+ "meta": {
1257
+ "liveStoreRefType": "table",
1258
+ },
1259
+ "previousResult": {
1260
+ "_tag": "Some",
1261
+ "value": "null",
1262
+ },
1263
+ "refreshes": 0,
1264
+ "sub": [],
1265
+ "super": [],
1266
+ },
1267
+ {
1268
+ "_tag": "ref",
1269
+ "id": "node-5",
1270
+ "isDestroyed": false,
1271
+ "isDirty": false,
1272
+ "label": "tableRef:Kv",
1273
+ "meta": {
1274
+ "liveStoreRefType": "table",
1275
+ },
1276
+ "previousResult": {
1277
+ "_tag": "Some",
1278
+ "value": "null",
1279
+ },
1280
+ "refreshes": 0,
1281
+ "sub": [],
1282
+ "super": [],
1283
+ },
1284
+ {
1285
+ "_tag": "ref",
1286
+ "id": "node-6",
1287
+ "isDestroyed": false,
1288
+ "isDirty": false,
1289
+ "label": "tableRef:__livestore_schema",
1290
+ "meta": {
1291
+ "liveStoreRefType": "table",
1292
+ },
1293
+ "previousResult": {
1294
+ "_tag": "Some",
1295
+ "value": "null",
1296
+ },
1297
+ "refreshes": 0,
1298
+ "sub": [],
1299
+ "super": [],
1300
+ },
1301
+ {
1302
+ "_tag": "ref",
1303
+ "id": "node-7",
1304
+ "isDestroyed": false,
1305
+ "isDirty": false,
1306
+ "label": "tableRef:__livestore_schema_event_defs",
1307
+ "meta": {
1308
+ "liveStoreRefType": "table",
1309
+ },
1310
+ "previousResult": {
1311
+ "_tag": "Some",
1312
+ "value": "null",
1313
+ },
1314
+ "refreshes": 0,
1315
+ "sub": [],
1316
+ "super": [],
1317
+ },
1318
+ {
1319
+ "_tag": "ref",
1320
+ "id": "node-8",
1321
+ "isDestroyed": false,
1322
+ "isDirty": false,
1323
+ "label": "tableRef:__livestore_session_changeset",
1324
+ "meta": {
1325
+ "liveStoreRefType": "table",
1326
+ },
1327
+ "previousResult": {
1328
+ "_tag": "Some",
1329
+ "value": "null",
1330
+ },
1331
+ "refreshes": 0,
1332
+ "sub": [],
1333
+ "super": [],
1334
+ },
1335
+ {
1336
+ "_tag": "thunk",
1337
+ "id": "node-9",
1338
+ "isDestroyed": false,
1339
+ "isDirty": false,
1340
+ "label": "select * from todos:results",
1341
+ "meta": {
1342
+ "liveStoreThunkType": "db.result",
1343
+ },
1344
+ "previousResult": {
1345
+ "_tag": "Some",
1346
+ "value": "[]",
1347
+ },
1348
+ "recomputations": 1,
1349
+ "sub": [
1350
+ "node-1",
1351
+ ],
1352
+ "super": [
1353
+ "node-10",
1354
+ ],
1355
+ },
1356
+ ],
1357
+ "deferredEffects": [],
1358
+ "effects": [
1359
+ {
1360
+ "_tag": "effect",
1361
+ "id": "node-10",
1362
+ "invocations": 1,
1363
+ "isDestroyed": false,
1364
+ "label": "subscribe:select * from todos",
1365
+ "sub": [
1366
+ "node-9",
1367
+ ],
1368
+ },
1369
+ ],
1370
+ }
1371
+ `;
1372
+
1373
+ exports[`useQuery > simple 2`] = `
1374
+ {
1375
+ "atoms": [
1376
+ {
1377
+ "_tag": "ref",
1378
+ "id": "node-1",
1379
+ "isDestroyed": false,
1380
+ "isDirty": false,
1381
+ "label": "tableRef:todos",
1382
+ "meta": {
1383
+ "liveStoreRefType": "table",
1384
+ },
1385
+ "previousResult": {
1386
+ "_tag": "Some",
1387
+ "value": "null",
1388
+ },
1389
+ "refreshes": 1,
1390
+ "sub": [],
1391
+ "super": [
1392
+ "node-9",
1393
+ ],
1394
+ },
1395
+ {
1396
+ "_tag": "ref",
1397
+ "id": "node-2",
1398
+ "isDestroyed": false,
1399
+ "isDirty": false,
1400
+ "label": "tableRef:app",
1401
+ "meta": {
1402
+ "liveStoreRefType": "table",
1403
+ },
1404
+ "previousResult": {
1405
+ "_tag": "Some",
1406
+ "value": "null",
1407
+ },
1408
+ "refreshes": 0,
1409
+ "sub": [],
1410
+ "super": [],
1411
+ },
1412
+ {
1413
+ "_tag": "ref",
1414
+ "id": "node-3",
1415
+ "isDestroyed": false,
1416
+ "isDirty": false,
1417
+ "label": "tableRef:UserInfo",
1418
+ "meta": {
1419
+ "liveStoreRefType": "table",
1420
+ },
1421
+ "previousResult": {
1422
+ "_tag": "Some",
1423
+ "value": "null",
1424
+ },
1425
+ "refreshes": 0,
1426
+ "sub": [],
1427
+ "super": [],
1428
+ },
1429
+ {
1430
+ "_tag": "ref",
1431
+ "id": "node-4",
1432
+ "isDestroyed": false,
1433
+ "isDirty": false,
1434
+ "label": "tableRef:AppRouter",
1435
+ "meta": {
1436
+ "liveStoreRefType": "table",
1437
+ },
1438
+ "previousResult": {
1439
+ "_tag": "Some",
1440
+ "value": "null",
1441
+ },
1442
+ "refreshes": 0,
1443
+ "sub": [],
1444
+ "super": [],
1445
+ },
1446
+ {
1447
+ "_tag": "ref",
1448
+ "id": "node-5",
1449
+ "isDestroyed": false,
1450
+ "isDirty": false,
1451
+ "label": "tableRef:Kv",
1452
+ "meta": {
1453
+ "liveStoreRefType": "table",
1454
+ },
1455
+ "previousResult": {
1456
+ "_tag": "Some",
1457
+ "value": "null",
1458
+ },
1459
+ "refreshes": 0,
1460
+ "sub": [],
1461
+ "super": [],
1462
+ },
1463
+ {
1464
+ "_tag": "ref",
1465
+ "id": "node-6",
1466
+ "isDestroyed": false,
1467
+ "isDirty": false,
1468
+ "label": "tableRef:__livestore_schema",
1469
+ "meta": {
1470
+ "liveStoreRefType": "table",
1471
+ },
1472
+ "previousResult": {
1473
+ "_tag": "Some",
1474
+ "value": "null",
1475
+ },
1476
+ "refreshes": 0,
1477
+ "sub": [],
1478
+ "super": [],
1479
+ },
1480
+ {
1481
+ "_tag": "ref",
1482
+ "id": "node-7",
1483
+ "isDestroyed": false,
1484
+ "isDirty": false,
1485
+ "label": "tableRef:__livestore_schema_event_defs",
1486
+ "meta": {
1487
+ "liveStoreRefType": "table",
1488
+ },
1489
+ "previousResult": {
1490
+ "_tag": "Some",
1491
+ "value": "null",
1492
+ },
1493
+ "refreshes": 0,
1494
+ "sub": [],
1495
+ "super": [],
1496
+ },
1497
+ {
1498
+ "_tag": "ref",
1499
+ "id": "node-8",
1500
+ "isDestroyed": false,
1501
+ "isDirty": false,
1502
+ "label": "tableRef:__livestore_session_changeset",
1503
+ "meta": {
1504
+ "liveStoreRefType": "table",
1505
+ },
1506
+ "previousResult": {
1507
+ "_tag": "Some",
1508
+ "value": "null",
1509
+ },
1510
+ "refreshes": 0,
1511
+ "sub": [],
1512
+ "super": [],
1513
+ },
1514
+ {
1515
+ "_tag": "thunk",
1516
+ "id": "node-9",
1517
+ "isDestroyed": false,
1518
+ "isDirty": false,
1519
+ "label": "select * from todos:results",
1520
+ "meta": {
1521
+ "liveStoreThunkType": "db.result",
1522
+ },
1523
+ "previousResult": {
1524
+ "_tag": "Some",
1525
+ "value": "[{"id":"t1","text":"buy milk","completed":false}]",
1526
+ },
1527
+ "recomputations": 2,
1528
+ "sub": [
1529
+ "node-1",
1530
+ ],
1531
+ "super": [
1532
+ "node-10",
1533
+ ],
1534
+ },
1535
+ ],
1536
+ "deferredEffects": [],
1537
+ "effects": [
1538
+ {
1539
+ "_tag": "effect",
1540
+ "id": "node-10",
1541
+ "invocations": 2,
1542
+ "isDestroyed": false,
1543
+ "label": "subscribe:select * from todos",
1544
+ "sub": [
1545
+ "node-9",
1546
+ ],
1547
+ },
1548
+ ],
1549
+ }
1550
+ `;