@livestore/react 0.4.0-dev.0 → 0.4.0-dev.10
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/.tsbuildinfo +1 -1
- package/dist/LiveStoreProvider.d.ts +1 -3
- package/dist/LiveStoreProvider.d.ts.map +1 -1
- package/dist/LiveStoreProvider.js +22 -18
- package/dist/LiveStoreProvider.js.map +1 -1
- package/dist/LiveStoreProvider.test.js +1 -1
- package/dist/LiveStoreProvider.test.js.map +1 -1
- package/dist/__tests__/fixture.d.ts +24 -3
- package/dist/__tests__/fixture.d.ts.map +1 -1
- package/dist/__tests__/fixture.js +10 -3
- package/dist/__tests__/fixture.js.map +1 -1
- package/dist/mod.d.ts +1 -1
- package/dist/mod.d.ts.map +1 -1
- package/dist/mod.js.map +1 -1
- package/dist/useClientDocument.d.ts +10 -13
- package/dist/useClientDocument.d.ts.map +1 -1
- package/dist/useClientDocument.js +3 -4
- package/dist/useClientDocument.js.map +1 -1
- package/dist/useClientDocument.test.js +20 -2
- package/dist/useClientDocument.test.js.map +1 -1
- package/dist/useQuery.d.ts.map +1 -1
- package/dist/useQuery.js +1 -2
- package/dist/useQuery.js.map +1 -1
- package/package.json +13 -13
- package/src/LiveStoreProvider.test.tsx +1 -1
- package/src/LiveStoreProvider.tsx +24 -19
- package/src/__snapshots__/useClientDocument.test.tsx.snap +208 -100
- package/src/__snapshots__/useQuery.test.tsx.snap +388 -116
- package/src/__tests__/fixture.tsx +17 -9
- package/src/mod.ts +2 -1
- package/src/useClientDocument.test.tsx +31 -2
- package/src/useClientDocument.ts +22 -12
- package/src/useQuery.ts +1 -2
@@ -19,7 +19,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
19
19
|
"refreshes": 1,
|
20
20
|
"sub": [],
|
21
21
|
"super": [
|
22
|
-
"node-
|
22
|
+
"node-7",
|
23
23
|
],
|
24
24
|
},
|
25
25
|
{
|
@@ -74,10 +74,27 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
74
74
|
"super": [],
|
75
75
|
},
|
76
76
|
{
|
77
|
-
"_tag": "
|
77
|
+
"_tag": "ref",
|
78
78
|
"id": "node-5",
|
79
79
|
"isDestroyed": false,
|
80
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": "thunk",
|
95
|
+
"id": "node-6",
|
96
|
+
"isDestroyed": false,
|
97
|
+
"isDirty": false,
|
81
98
|
"label": "todo:query",
|
82
99
|
"meta": {
|
83
100
|
"liveStoreThunkType": "db.query",
|
@@ -88,15 +105,15 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
88
105
|
},
|
89
106
|
"recomputations": 1,
|
90
107
|
"sub": [
|
91
|
-
"node-
|
108
|
+
"node-8",
|
92
109
|
],
|
93
110
|
"super": [
|
94
|
-
"node-
|
111
|
+
"node-7",
|
95
112
|
],
|
96
113
|
},
|
97
114
|
{
|
98
115
|
"_tag": "thunk",
|
99
|
-
"id": "node-
|
116
|
+
"id": "node-7",
|
100
117
|
"isDestroyed": false,
|
101
118
|
"isDirty": false,
|
102
119
|
"label": "todo:results",
|
@@ -109,16 +126,16 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
109
126
|
},
|
110
127
|
"recomputations": 1,
|
111
128
|
"sub": [
|
112
|
-
"node-
|
129
|
+
"node-6",
|
113
130
|
"node-1",
|
114
131
|
],
|
115
132
|
"super": [
|
116
|
-
"node-
|
133
|
+
"node-9",
|
117
134
|
],
|
118
135
|
},
|
119
136
|
{
|
120
137
|
"_tag": "ref",
|
121
|
-
"id": "node-
|
138
|
+
"id": "node-8",
|
122
139
|
"isDestroyed": false,
|
123
140
|
"isDirty": false,
|
124
141
|
"label": "id-filter",
|
@@ -130,7 +147,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
130
147
|
"refreshes": 0,
|
131
148
|
"sub": [],
|
132
149
|
"super": [
|
133
|
-
"node-
|
150
|
+
"node-6",
|
134
151
|
],
|
135
152
|
},
|
136
153
|
],
|
@@ -138,12 +155,12 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
138
155
|
"effects": [
|
139
156
|
{
|
140
157
|
"_tag": "effect",
|
141
|
-
"id": "node-
|
158
|
+
"id": "node-9",
|
142
159
|
"invocations": 1,
|
143
160
|
"isDestroyed": false,
|
144
161
|
"label": "subscribe:SELECT * FROM 'todos' WHERE id = ?",
|
145
162
|
"sub": [
|
146
|
-
"node-
|
163
|
+
"node-7",
|
147
164
|
],
|
148
165
|
},
|
149
166
|
],
|
@@ -169,7 +186,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
169
186
|
"refreshes": 2,
|
170
187
|
"sub": [],
|
171
188
|
"super": [
|
172
|
-
"node-
|
189
|
+
"node-7",
|
173
190
|
],
|
174
191
|
},
|
175
192
|
{
|
@@ -224,10 +241,27 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
224
241
|
"super": [],
|
225
242
|
},
|
226
243
|
{
|
227
|
-
"_tag": "
|
244
|
+
"_tag": "ref",
|
228
245
|
"id": "node-5",
|
229
246
|
"isDestroyed": false,
|
230
247
|
"isDirty": false,
|
248
|
+
"label": "tableRef:Kv",
|
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": "thunk",
|
262
|
+
"id": "node-6",
|
263
|
+
"isDestroyed": false,
|
264
|
+
"isDirty": false,
|
231
265
|
"label": "todo:query",
|
232
266
|
"meta": {
|
233
267
|
"liveStoreThunkType": "db.query",
|
@@ -238,15 +272,15 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
238
272
|
},
|
239
273
|
"recomputations": 1,
|
240
274
|
"sub": [
|
241
|
-
"node-
|
275
|
+
"node-8",
|
242
276
|
],
|
243
277
|
"super": [
|
244
|
-
"node-
|
278
|
+
"node-7",
|
245
279
|
],
|
246
280
|
},
|
247
281
|
{
|
248
282
|
"_tag": "thunk",
|
249
|
-
"id": "node-
|
283
|
+
"id": "node-7",
|
250
284
|
"isDestroyed": false,
|
251
285
|
"isDirty": false,
|
252
286
|
"label": "todo:results",
|
@@ -259,16 +293,16 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
259
293
|
},
|
260
294
|
"recomputations": 2,
|
261
295
|
"sub": [
|
262
|
-
"node-
|
296
|
+
"node-6",
|
263
297
|
"node-1",
|
264
298
|
],
|
265
299
|
"super": [
|
266
|
-
"node-
|
300
|
+
"node-9",
|
267
301
|
],
|
268
302
|
},
|
269
303
|
{
|
270
304
|
"_tag": "ref",
|
271
|
-
"id": "node-
|
305
|
+
"id": "node-8",
|
272
306
|
"isDestroyed": false,
|
273
307
|
"isDirty": false,
|
274
308
|
"label": "id-filter",
|
@@ -280,7 +314,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
280
314
|
"refreshes": 0,
|
281
315
|
"sub": [],
|
282
316
|
"super": [
|
283
|
-
"node-
|
317
|
+
"node-6",
|
284
318
|
],
|
285
319
|
},
|
286
320
|
],
|
@@ -288,12 +322,12 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
288
322
|
"effects": [
|
289
323
|
{
|
290
324
|
"_tag": "effect",
|
291
|
-
"id": "node-
|
325
|
+
"id": "node-9",
|
292
326
|
"invocations": 2,
|
293
327
|
"isDestroyed": false,
|
294
328
|
"label": "subscribe:SELECT * FROM 'todos' WHERE id = ?",
|
295
329
|
"sub": [
|
296
|
-
"node-
|
330
|
+
"node-7",
|
297
331
|
],
|
298
332
|
},
|
299
333
|
],
|
@@ -319,7 +353,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
319
353
|
"refreshes": 2,
|
320
354
|
"sub": [],
|
321
355
|
"super": [
|
322
|
-
"node-
|
356
|
+
"node-7",
|
323
357
|
],
|
324
358
|
},
|
325
359
|
{
|
@@ -374,10 +408,27 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
374
408
|
"super": [],
|
375
409
|
},
|
376
410
|
{
|
377
|
-
"_tag": "
|
411
|
+
"_tag": "ref",
|
378
412
|
"id": "node-5",
|
379
413
|
"isDestroyed": false,
|
380
414
|
"isDirty": false,
|
415
|
+
"label": "tableRef:Kv",
|
416
|
+
"meta": {
|
417
|
+
"liveStoreRefType": "table",
|
418
|
+
},
|
419
|
+
"previousResult": {
|
420
|
+
"_tag": "Some",
|
421
|
+
"value": "null",
|
422
|
+
},
|
423
|
+
"refreshes": 0,
|
424
|
+
"sub": [],
|
425
|
+
"super": [],
|
426
|
+
},
|
427
|
+
{
|
428
|
+
"_tag": "thunk",
|
429
|
+
"id": "node-6",
|
430
|
+
"isDestroyed": false,
|
431
|
+
"isDirty": false,
|
381
432
|
"label": "todo:query",
|
382
433
|
"meta": {
|
383
434
|
"liveStoreThunkType": "db.query",
|
@@ -388,15 +439,15 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
388
439
|
},
|
389
440
|
"recomputations": 2,
|
390
441
|
"sub": [
|
391
|
-
"node-
|
442
|
+
"node-8",
|
392
443
|
],
|
393
444
|
"super": [
|
394
|
-
"node-
|
445
|
+
"node-7",
|
395
446
|
],
|
396
447
|
},
|
397
448
|
{
|
398
449
|
"_tag": "thunk",
|
399
|
-
"id": "node-
|
450
|
+
"id": "node-7",
|
400
451
|
"isDestroyed": false,
|
401
452
|
"isDirty": false,
|
402
453
|
"label": "todo:results",
|
@@ -409,16 +460,16 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
409
460
|
},
|
410
461
|
"recomputations": 3,
|
411
462
|
"sub": [
|
412
|
-
"node-
|
463
|
+
"node-6",
|
413
464
|
"node-1",
|
414
465
|
],
|
415
466
|
"super": [
|
416
|
-
"node-
|
467
|
+
"node-9",
|
417
468
|
],
|
418
469
|
},
|
419
470
|
{
|
420
471
|
"_tag": "ref",
|
421
|
-
"id": "node-
|
472
|
+
"id": "node-8",
|
422
473
|
"isDestroyed": false,
|
423
474
|
"isDirty": false,
|
424
475
|
"label": "id-filter",
|
@@ -430,7 +481,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
430
481
|
"refreshes": 1,
|
431
482
|
"sub": [],
|
432
483
|
"super": [
|
433
|
-
"node-
|
484
|
+
"node-6",
|
434
485
|
],
|
435
486
|
},
|
436
487
|
],
|
@@ -438,12 +489,12 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
|
|
438
489
|
"effects": [
|
439
490
|
{
|
440
491
|
"_tag": "effect",
|
441
|
-
"id": "node-
|
492
|
+
"id": "node-9",
|
442
493
|
"invocations": 3,
|
443
494
|
"isDestroyed": false,
|
444
495
|
"label": "subscribe:SELECT * FROM 'todos' WHERE id = ?",
|
445
496
|
"sub": [
|
446
|
-
"node-
|
497
|
+
"node-7",
|
447
498
|
],
|
448
499
|
},
|
449
500
|
],
|
@@ -469,7 +520,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > same \`useQuery\` hook in
|
|
469
520
|
"refreshes": 1,
|
470
521
|
"sub": [],
|
471
522
|
"super": [
|
472
|
-
"node-
|
523
|
+
"node-6",
|
473
524
|
],
|
474
525
|
},
|
475
526
|
{
|
@@ -524,10 +575,27 @@ exports[`useQuery (strictMode={ strictMode: false }) > same \`useQuery\` hook in
|
|
524
575
|
"super": [],
|
525
576
|
},
|
526
577
|
{
|
527
|
-
"_tag": "
|
578
|
+
"_tag": "ref",
|
528
579
|
"id": "node-5",
|
529
580
|
"isDestroyed": false,
|
530
581
|
"isDirty": false,
|
582
|
+
"label": "tableRef:Kv",
|
583
|
+
"meta": {
|
584
|
+
"liveStoreRefType": "table",
|
585
|
+
},
|
586
|
+
"previousResult": {
|
587
|
+
"_tag": "Some",
|
588
|
+
"value": "null",
|
589
|
+
},
|
590
|
+
"refreshes": 0,
|
591
|
+
"sub": [],
|
592
|
+
"super": [],
|
593
|
+
},
|
594
|
+
{
|
595
|
+
"_tag": "thunk",
|
596
|
+
"id": "node-6",
|
597
|
+
"isDestroyed": false,
|
598
|
+
"isDirty": false,
|
531
599
|
"label": "libraryTracksView1:results",
|
532
600
|
"meta": {
|
533
601
|
"liveStoreThunkType": "db.result",
|
@@ -541,7 +609,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > same \`useQuery\` hook in
|
|
541
609
|
"node-1",
|
542
610
|
],
|
543
611
|
"super": [
|
544
|
-
"node-
|
612
|
+
"node-7",
|
545
613
|
],
|
546
614
|
},
|
547
615
|
],
|
@@ -549,12 +617,12 @@ exports[`useQuery (strictMode={ strictMode: false }) > same \`useQuery\` hook in
|
|
549
617
|
"effects": [
|
550
618
|
{
|
551
619
|
"_tag": "effect",
|
552
|
-
"id": "node-
|
620
|
+
"id": "node-7",
|
553
621
|
"invocations": 1,
|
554
622
|
"isDestroyed": false,
|
555
623
|
"label": "subscribe:libraryTracksView1",
|
556
624
|
"sub": [
|
557
|
-
"node-
|
625
|
+
"node-6",
|
558
626
|
],
|
559
627
|
},
|
560
628
|
],
|
@@ -580,7 +648,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > same \`useQuery\` hook in
|
|
580
648
|
"refreshes": 2,
|
581
649
|
"sub": [],
|
582
650
|
"super": [
|
583
|
-
"node-
|
651
|
+
"node-6",
|
584
652
|
],
|
585
653
|
},
|
586
654
|
{
|
@@ -635,10 +703,27 @@ exports[`useQuery (strictMode={ strictMode: false }) > same \`useQuery\` hook in
|
|
635
703
|
"super": [],
|
636
704
|
},
|
637
705
|
{
|
638
|
-
"_tag": "
|
706
|
+
"_tag": "ref",
|
639
707
|
"id": "node-5",
|
640
708
|
"isDestroyed": false,
|
641
709
|
"isDirty": false,
|
710
|
+
"label": "tableRef:Kv",
|
711
|
+
"meta": {
|
712
|
+
"liveStoreRefType": "table",
|
713
|
+
},
|
714
|
+
"previousResult": {
|
715
|
+
"_tag": "Some",
|
716
|
+
"value": "null",
|
717
|
+
},
|
718
|
+
"refreshes": 0,
|
719
|
+
"sub": [],
|
720
|
+
"super": [],
|
721
|
+
},
|
722
|
+
{
|
723
|
+
"_tag": "thunk",
|
724
|
+
"id": "node-6",
|
725
|
+
"isDestroyed": false,
|
726
|
+
"isDirty": false,
|
642
727
|
"label": "libraryTracksView1:results",
|
643
728
|
"meta": {
|
644
729
|
"liveStoreThunkType": "db.result",
|
@@ -652,7 +737,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > same \`useQuery\` hook in
|
|
652
737
|
"node-1",
|
653
738
|
],
|
654
739
|
"super": [
|
655
|
-
"node-
|
740
|
+
"node-7",
|
656
741
|
],
|
657
742
|
},
|
658
743
|
],
|
@@ -660,12 +745,12 @@ exports[`useQuery (strictMode={ strictMode: false }) > same \`useQuery\` hook in
|
|
660
745
|
"effects": [
|
661
746
|
{
|
662
747
|
"_tag": "effect",
|
663
|
-
"id": "node-
|
748
|
+
"id": "node-7",
|
664
749
|
"invocations": 2,
|
665
750
|
"isDestroyed": false,
|
666
751
|
"label": "subscribe:libraryTracksView1",
|
667
752
|
"sub": [
|
668
|
-
"node-
|
753
|
+
"node-6",
|
669
754
|
],
|
670
755
|
},
|
671
756
|
],
|
@@ -691,7 +776,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > same \`useQuery\` hook in
|
|
691
776
|
"refreshes": 2,
|
692
777
|
"sub": [],
|
693
778
|
"super": [
|
694
|
-
"node-
|
779
|
+
"node-8",
|
695
780
|
],
|
696
781
|
},
|
697
782
|
{
|
@@ -745,9 +830,26 @@ exports[`useQuery (strictMode={ strictMode: false }) > same \`useQuery\` hook in
|
|
745
830
|
"sub": [],
|
746
831
|
"super": [],
|
747
832
|
},
|
833
|
+
{
|
834
|
+
"_tag": "ref",
|
835
|
+
"id": "node-5",
|
836
|
+
"isDestroyed": false,
|
837
|
+
"isDirty": false,
|
838
|
+
"label": "tableRef:Kv",
|
839
|
+
"meta": {
|
840
|
+
"liveStoreRefType": "table",
|
841
|
+
},
|
842
|
+
"previousResult": {
|
843
|
+
"_tag": "Some",
|
844
|
+
"value": "null",
|
845
|
+
},
|
846
|
+
"refreshes": 0,
|
847
|
+
"sub": [],
|
848
|
+
"super": [],
|
849
|
+
},
|
748
850
|
{
|
749
851
|
"_tag": "thunk",
|
750
|
-
"id": "node-
|
852
|
+
"id": "node-8",
|
751
853
|
"isDestroyed": false,
|
752
854
|
"isDirty": false,
|
753
855
|
"label": "libraryTracksView2:results",
|
@@ -763,7 +865,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > same \`useQuery\` hook in
|
|
763
865
|
"node-1",
|
764
866
|
],
|
765
867
|
"super": [
|
766
|
-
"node-
|
868
|
+
"node-9",
|
767
869
|
],
|
768
870
|
},
|
769
871
|
],
|
@@ -771,12 +873,12 @@ exports[`useQuery (strictMode={ strictMode: false }) > same \`useQuery\` hook in
|
|
771
873
|
"effects": [
|
772
874
|
{
|
773
875
|
"_tag": "effect",
|
774
|
-
"id": "node-
|
876
|
+
"id": "node-9",
|
775
877
|
"invocations": 1,
|
776
878
|
"isDestroyed": false,
|
777
879
|
"label": "subscribe:libraryTracksView2",
|
778
880
|
"sub": [
|
779
|
-
"node-
|
881
|
+
"node-8",
|
780
882
|
],
|
781
883
|
},
|
782
884
|
],
|
@@ -802,7 +904,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > simple 1`] = `
|
|
802
904
|
"refreshes": 0,
|
803
905
|
"sub": [],
|
804
906
|
"super": [
|
805
|
-
"node-
|
907
|
+
"node-6",
|
806
908
|
],
|
807
909
|
},
|
808
910
|
{
|
@@ -857,10 +959,27 @@ exports[`useQuery (strictMode={ strictMode: false }) > simple 1`] = `
|
|
857
959
|
"super": [],
|
858
960
|
},
|
859
961
|
{
|
860
|
-
"_tag": "
|
962
|
+
"_tag": "ref",
|
861
963
|
"id": "node-5",
|
862
964
|
"isDestroyed": false,
|
863
965
|
"isDirty": false,
|
966
|
+
"label": "tableRef:Kv",
|
967
|
+
"meta": {
|
968
|
+
"liveStoreRefType": "table",
|
969
|
+
},
|
970
|
+
"previousResult": {
|
971
|
+
"_tag": "Some",
|
972
|
+
"value": "null",
|
973
|
+
},
|
974
|
+
"refreshes": 0,
|
975
|
+
"sub": [],
|
976
|
+
"super": [],
|
977
|
+
},
|
978
|
+
{
|
979
|
+
"_tag": "thunk",
|
980
|
+
"id": "node-6",
|
981
|
+
"isDestroyed": false,
|
982
|
+
"isDirty": false,
|
864
983
|
"label": "select * from todos:results",
|
865
984
|
"meta": {
|
866
985
|
"liveStoreThunkType": "db.result",
|
@@ -874,7 +993,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > simple 1`] = `
|
|
874
993
|
"node-1",
|
875
994
|
],
|
876
995
|
"super": [
|
877
|
-
"node-
|
996
|
+
"node-7",
|
878
997
|
],
|
879
998
|
},
|
880
999
|
],
|
@@ -882,12 +1001,12 @@ exports[`useQuery (strictMode={ strictMode: false }) > simple 1`] = `
|
|
882
1001
|
"effects": [
|
883
1002
|
{
|
884
1003
|
"_tag": "effect",
|
885
|
-
"id": "node-
|
1004
|
+
"id": "node-7",
|
886
1005
|
"invocations": 1,
|
887
1006
|
"isDestroyed": false,
|
888
1007
|
"label": "subscribe:select * from todos",
|
889
1008
|
"sub": [
|
890
|
-
"node-
|
1009
|
+
"node-6",
|
891
1010
|
],
|
892
1011
|
},
|
893
1012
|
],
|
@@ -913,7 +1032,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > simple 2`] = `
|
|
913
1032
|
"refreshes": 1,
|
914
1033
|
"sub": [],
|
915
1034
|
"super": [
|
916
|
-
"node-
|
1035
|
+
"node-6",
|
917
1036
|
],
|
918
1037
|
},
|
919
1038
|
{
|
@@ -968,10 +1087,27 @@ exports[`useQuery (strictMode={ strictMode: false }) > simple 2`] = `
|
|
968
1087
|
"super": [],
|
969
1088
|
},
|
970
1089
|
{
|
971
|
-
"_tag": "
|
1090
|
+
"_tag": "ref",
|
972
1091
|
"id": "node-5",
|
973
1092
|
"isDestroyed": false,
|
974
1093
|
"isDirty": false,
|
1094
|
+
"label": "tableRef:Kv",
|
1095
|
+
"meta": {
|
1096
|
+
"liveStoreRefType": "table",
|
1097
|
+
},
|
1098
|
+
"previousResult": {
|
1099
|
+
"_tag": "Some",
|
1100
|
+
"value": "null",
|
1101
|
+
},
|
1102
|
+
"refreshes": 0,
|
1103
|
+
"sub": [],
|
1104
|
+
"super": [],
|
1105
|
+
},
|
1106
|
+
{
|
1107
|
+
"_tag": "thunk",
|
1108
|
+
"id": "node-6",
|
1109
|
+
"isDestroyed": false,
|
1110
|
+
"isDirty": false,
|
975
1111
|
"label": "select * from todos:results",
|
976
1112
|
"meta": {
|
977
1113
|
"liveStoreThunkType": "db.result",
|
@@ -985,7 +1121,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > simple 2`] = `
|
|
985
1121
|
"node-1",
|
986
1122
|
],
|
987
1123
|
"super": [
|
988
|
-
"node-
|
1124
|
+
"node-7",
|
989
1125
|
],
|
990
1126
|
},
|
991
1127
|
],
|
@@ -993,12 +1129,12 @@ exports[`useQuery (strictMode={ strictMode: false }) > simple 2`] = `
|
|
993
1129
|
"effects": [
|
994
1130
|
{
|
995
1131
|
"_tag": "effect",
|
996
|
-
"id": "node-
|
1132
|
+
"id": "node-7",
|
997
1133
|
"invocations": 2,
|
998
1134
|
"isDestroyed": false,
|
999
1135
|
"label": "subscribe:select * from todos",
|
1000
1136
|
"sub": [
|
1001
|
-
"node-
|
1137
|
+
"node-6",
|
1002
1138
|
],
|
1003
1139
|
},
|
1004
1140
|
],
|
@@ -1024,7 +1160,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1024
1160
|
"refreshes": 1,
|
1025
1161
|
"sub": [],
|
1026
1162
|
"super": [
|
1027
|
-
"node-
|
1163
|
+
"node-7",
|
1028
1164
|
],
|
1029
1165
|
},
|
1030
1166
|
{
|
@@ -1079,10 +1215,27 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1079
1215
|
"super": [],
|
1080
1216
|
},
|
1081
1217
|
{
|
1082
|
-
"_tag": "
|
1218
|
+
"_tag": "ref",
|
1083
1219
|
"id": "node-5",
|
1084
1220
|
"isDestroyed": false,
|
1085
1221
|
"isDirty": false,
|
1222
|
+
"label": "tableRef:Kv",
|
1223
|
+
"meta": {
|
1224
|
+
"liveStoreRefType": "table",
|
1225
|
+
},
|
1226
|
+
"previousResult": {
|
1227
|
+
"_tag": "Some",
|
1228
|
+
"value": "null",
|
1229
|
+
},
|
1230
|
+
"refreshes": 0,
|
1231
|
+
"sub": [],
|
1232
|
+
"super": [],
|
1233
|
+
},
|
1234
|
+
{
|
1235
|
+
"_tag": "thunk",
|
1236
|
+
"id": "node-6",
|
1237
|
+
"isDestroyed": false,
|
1238
|
+
"isDirty": false,
|
1086
1239
|
"label": "todo:query",
|
1087
1240
|
"meta": {
|
1088
1241
|
"liveStoreThunkType": "db.query",
|
@@ -1093,15 +1246,15 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1093
1246
|
},
|
1094
1247
|
"recomputations": 1,
|
1095
1248
|
"sub": [
|
1096
|
-
"node-
|
1249
|
+
"node-8",
|
1097
1250
|
],
|
1098
1251
|
"super": [
|
1099
|
-
"node-
|
1252
|
+
"node-7",
|
1100
1253
|
],
|
1101
1254
|
},
|
1102
1255
|
{
|
1103
1256
|
"_tag": "thunk",
|
1104
|
-
"id": "node-
|
1257
|
+
"id": "node-7",
|
1105
1258
|
"isDestroyed": false,
|
1106
1259
|
"isDirty": false,
|
1107
1260
|
"label": "todo:results",
|
@@ -1114,16 +1267,16 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1114
1267
|
},
|
1115
1268
|
"recomputations": 1,
|
1116
1269
|
"sub": [
|
1117
|
-
"node-
|
1270
|
+
"node-6",
|
1118
1271
|
"node-1",
|
1119
1272
|
],
|
1120
1273
|
"super": [
|
1121
|
-
"node-
|
1274
|
+
"node-9",
|
1122
1275
|
],
|
1123
1276
|
},
|
1124
1277
|
{
|
1125
1278
|
"_tag": "ref",
|
1126
|
-
"id": "node-
|
1279
|
+
"id": "node-8",
|
1127
1280
|
"isDestroyed": false,
|
1128
1281
|
"isDirty": false,
|
1129
1282
|
"label": "id-filter",
|
@@ -1135,7 +1288,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1135
1288
|
"refreshes": 0,
|
1136
1289
|
"sub": [],
|
1137
1290
|
"super": [
|
1138
|
-
"node-
|
1291
|
+
"node-6",
|
1139
1292
|
],
|
1140
1293
|
},
|
1141
1294
|
],
|
@@ -1143,12 +1296,12 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1143
1296
|
"effects": [
|
1144
1297
|
{
|
1145
1298
|
"_tag": "effect",
|
1146
|
-
"id": "node-
|
1299
|
+
"id": "node-9",
|
1147
1300
|
"invocations": 1,
|
1148
1301
|
"isDestroyed": false,
|
1149
1302
|
"label": "subscribe:SELECT * FROM 'todos' WHERE id = ?",
|
1150
1303
|
"sub": [
|
1151
|
-
"node-
|
1304
|
+
"node-7",
|
1152
1305
|
],
|
1153
1306
|
},
|
1154
1307
|
],
|
@@ -1174,7 +1327,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1174
1327
|
"refreshes": 2,
|
1175
1328
|
"sub": [],
|
1176
1329
|
"super": [
|
1177
|
-
"node-
|
1330
|
+
"node-7",
|
1178
1331
|
],
|
1179
1332
|
},
|
1180
1333
|
{
|
@@ -1229,10 +1382,27 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1229
1382
|
"super": [],
|
1230
1383
|
},
|
1231
1384
|
{
|
1232
|
-
"_tag": "
|
1385
|
+
"_tag": "ref",
|
1233
1386
|
"id": "node-5",
|
1234
1387
|
"isDestroyed": false,
|
1235
1388
|
"isDirty": false,
|
1389
|
+
"label": "tableRef:Kv",
|
1390
|
+
"meta": {
|
1391
|
+
"liveStoreRefType": "table",
|
1392
|
+
},
|
1393
|
+
"previousResult": {
|
1394
|
+
"_tag": "Some",
|
1395
|
+
"value": "null",
|
1396
|
+
},
|
1397
|
+
"refreshes": 0,
|
1398
|
+
"sub": [],
|
1399
|
+
"super": [],
|
1400
|
+
},
|
1401
|
+
{
|
1402
|
+
"_tag": "thunk",
|
1403
|
+
"id": "node-6",
|
1404
|
+
"isDestroyed": false,
|
1405
|
+
"isDirty": false,
|
1236
1406
|
"label": "todo:query",
|
1237
1407
|
"meta": {
|
1238
1408
|
"liveStoreThunkType": "db.query",
|
@@ -1243,15 +1413,15 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1243
1413
|
},
|
1244
1414
|
"recomputations": 1,
|
1245
1415
|
"sub": [
|
1246
|
-
"node-
|
1416
|
+
"node-8",
|
1247
1417
|
],
|
1248
1418
|
"super": [
|
1249
|
-
"node-
|
1419
|
+
"node-7",
|
1250
1420
|
],
|
1251
1421
|
},
|
1252
1422
|
{
|
1253
1423
|
"_tag": "thunk",
|
1254
|
-
"id": "node-
|
1424
|
+
"id": "node-7",
|
1255
1425
|
"isDestroyed": false,
|
1256
1426
|
"isDirty": false,
|
1257
1427
|
"label": "todo:results",
|
@@ -1264,16 +1434,16 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1264
1434
|
},
|
1265
1435
|
"recomputations": 2,
|
1266
1436
|
"sub": [
|
1267
|
-
"node-
|
1437
|
+
"node-6",
|
1268
1438
|
"node-1",
|
1269
1439
|
],
|
1270
1440
|
"super": [
|
1271
|
-
"node-
|
1441
|
+
"node-9",
|
1272
1442
|
],
|
1273
1443
|
},
|
1274
1444
|
{
|
1275
1445
|
"_tag": "ref",
|
1276
|
-
"id": "node-
|
1446
|
+
"id": "node-8",
|
1277
1447
|
"isDestroyed": false,
|
1278
1448
|
"isDirty": false,
|
1279
1449
|
"label": "id-filter",
|
@@ -1285,7 +1455,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1285
1455
|
"refreshes": 0,
|
1286
1456
|
"sub": [],
|
1287
1457
|
"super": [
|
1288
|
-
"node-
|
1458
|
+
"node-6",
|
1289
1459
|
],
|
1290
1460
|
},
|
1291
1461
|
],
|
@@ -1293,12 +1463,12 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1293
1463
|
"effects": [
|
1294
1464
|
{
|
1295
1465
|
"_tag": "effect",
|
1296
|
-
"id": "node-
|
1466
|
+
"id": "node-9",
|
1297
1467
|
"invocations": 2,
|
1298
1468
|
"isDestroyed": false,
|
1299
1469
|
"label": "subscribe:SELECT * FROM 'todos' WHERE id = ?",
|
1300
1470
|
"sub": [
|
1301
|
-
"node-
|
1471
|
+
"node-7",
|
1302
1472
|
],
|
1303
1473
|
},
|
1304
1474
|
],
|
@@ -1324,7 +1494,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1324
1494
|
"refreshes": 2,
|
1325
1495
|
"sub": [],
|
1326
1496
|
"super": [
|
1327
|
-
"node-
|
1497
|
+
"node-7",
|
1328
1498
|
],
|
1329
1499
|
},
|
1330
1500
|
{
|
@@ -1379,10 +1549,27 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1379
1549
|
"super": [],
|
1380
1550
|
},
|
1381
1551
|
{
|
1382
|
-
"_tag": "
|
1552
|
+
"_tag": "ref",
|
1383
1553
|
"id": "node-5",
|
1384
1554
|
"isDestroyed": false,
|
1385
1555
|
"isDirty": false,
|
1556
|
+
"label": "tableRef:Kv",
|
1557
|
+
"meta": {
|
1558
|
+
"liveStoreRefType": "table",
|
1559
|
+
},
|
1560
|
+
"previousResult": {
|
1561
|
+
"_tag": "Some",
|
1562
|
+
"value": "null",
|
1563
|
+
},
|
1564
|
+
"refreshes": 0,
|
1565
|
+
"sub": [],
|
1566
|
+
"super": [],
|
1567
|
+
},
|
1568
|
+
{
|
1569
|
+
"_tag": "thunk",
|
1570
|
+
"id": "node-6",
|
1571
|
+
"isDestroyed": false,
|
1572
|
+
"isDirty": false,
|
1386
1573
|
"label": "todo:query",
|
1387
1574
|
"meta": {
|
1388
1575
|
"liveStoreThunkType": "db.query",
|
@@ -1393,15 +1580,15 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1393
1580
|
},
|
1394
1581
|
"recomputations": 2,
|
1395
1582
|
"sub": [
|
1396
|
-
"node-
|
1583
|
+
"node-8",
|
1397
1584
|
],
|
1398
1585
|
"super": [
|
1399
|
-
"node-
|
1586
|
+
"node-7",
|
1400
1587
|
],
|
1401
1588
|
},
|
1402
1589
|
{
|
1403
1590
|
"_tag": "thunk",
|
1404
|
-
"id": "node-
|
1591
|
+
"id": "node-7",
|
1405
1592
|
"isDestroyed": false,
|
1406
1593
|
"isDirty": false,
|
1407
1594
|
"label": "todo:results",
|
@@ -1414,16 +1601,16 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1414
1601
|
},
|
1415
1602
|
"recomputations": 3,
|
1416
1603
|
"sub": [
|
1417
|
-
"node-
|
1604
|
+
"node-6",
|
1418
1605
|
"node-1",
|
1419
1606
|
],
|
1420
1607
|
"super": [
|
1421
|
-
"node-
|
1608
|
+
"node-9",
|
1422
1609
|
],
|
1423
1610
|
},
|
1424
1611
|
{
|
1425
1612
|
"_tag": "ref",
|
1426
|
-
"id": "node-
|
1613
|
+
"id": "node-8",
|
1427
1614
|
"isDestroyed": false,
|
1428
1615
|
"isDirty": false,
|
1429
1616
|
"label": "id-filter",
|
@@ -1435,7 +1622,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1435
1622
|
"refreshes": 1,
|
1436
1623
|
"sub": [],
|
1437
1624
|
"super": [
|
1438
|
-
"node-
|
1625
|
+
"node-6",
|
1439
1626
|
],
|
1440
1627
|
},
|
1441
1628
|
],
|
@@ -1443,12 +1630,12 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
|
|
1443
1630
|
"effects": [
|
1444
1631
|
{
|
1445
1632
|
"_tag": "effect",
|
1446
|
-
"id": "node-
|
1633
|
+
"id": "node-9",
|
1447
1634
|
"invocations": 3,
|
1448
1635
|
"isDestroyed": false,
|
1449
1636
|
"label": "subscribe:SELECT * FROM 'todos' WHERE id = ?",
|
1450
1637
|
"sub": [
|
1451
|
-
"node-
|
1638
|
+
"node-7",
|
1452
1639
|
],
|
1453
1640
|
},
|
1454
1641
|
],
|
@@ -1474,7 +1661,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > same \`useQuery\` hook inv
|
|
1474
1661
|
"refreshes": 1,
|
1475
1662
|
"sub": [],
|
1476
1663
|
"super": [
|
1477
|
-
"node-
|
1664
|
+
"node-6",
|
1478
1665
|
],
|
1479
1666
|
},
|
1480
1667
|
{
|
@@ -1529,10 +1716,27 @@ exports[`useQuery (strictMode={ strictMode: true }) > same \`useQuery\` hook inv
|
|
1529
1716
|
"super": [],
|
1530
1717
|
},
|
1531
1718
|
{
|
1532
|
-
"_tag": "
|
1719
|
+
"_tag": "ref",
|
1533
1720
|
"id": "node-5",
|
1534
1721
|
"isDestroyed": false,
|
1535
1722
|
"isDirty": false,
|
1723
|
+
"label": "tableRef:Kv",
|
1724
|
+
"meta": {
|
1725
|
+
"liveStoreRefType": "table",
|
1726
|
+
},
|
1727
|
+
"previousResult": {
|
1728
|
+
"_tag": "Some",
|
1729
|
+
"value": "null",
|
1730
|
+
},
|
1731
|
+
"refreshes": 0,
|
1732
|
+
"sub": [],
|
1733
|
+
"super": [],
|
1734
|
+
},
|
1735
|
+
{
|
1736
|
+
"_tag": "thunk",
|
1737
|
+
"id": "node-6",
|
1738
|
+
"isDestroyed": false,
|
1739
|
+
"isDirty": false,
|
1536
1740
|
"label": "libraryTracksView1:results",
|
1537
1741
|
"meta": {
|
1538
1742
|
"liveStoreThunkType": "db.result",
|
@@ -1546,7 +1750,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > same \`useQuery\` hook inv
|
|
1546
1750
|
"node-1",
|
1547
1751
|
],
|
1548
1752
|
"super": [
|
1549
|
-
"node-
|
1753
|
+
"node-7",
|
1550
1754
|
],
|
1551
1755
|
},
|
1552
1756
|
],
|
@@ -1554,12 +1758,12 @@ exports[`useQuery (strictMode={ strictMode: true }) > same \`useQuery\` hook inv
|
|
1554
1758
|
"effects": [
|
1555
1759
|
{
|
1556
1760
|
"_tag": "effect",
|
1557
|
-
"id": "node-
|
1761
|
+
"id": "node-7",
|
1558
1762
|
"invocations": 1,
|
1559
1763
|
"isDestroyed": false,
|
1560
1764
|
"label": "subscribe:libraryTracksView1",
|
1561
1765
|
"sub": [
|
1562
|
-
"node-
|
1766
|
+
"node-6",
|
1563
1767
|
],
|
1564
1768
|
},
|
1565
1769
|
],
|
@@ -1585,7 +1789,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > same \`useQuery\` hook inv
|
|
1585
1789
|
"refreshes": 2,
|
1586
1790
|
"sub": [],
|
1587
1791
|
"super": [
|
1588
|
-
"node-
|
1792
|
+
"node-6",
|
1589
1793
|
],
|
1590
1794
|
},
|
1591
1795
|
{
|
@@ -1640,10 +1844,27 @@ exports[`useQuery (strictMode={ strictMode: true }) > same \`useQuery\` hook inv
|
|
1640
1844
|
"super": [],
|
1641
1845
|
},
|
1642
1846
|
{
|
1643
|
-
"_tag": "
|
1847
|
+
"_tag": "ref",
|
1644
1848
|
"id": "node-5",
|
1645
1849
|
"isDestroyed": false,
|
1646
1850
|
"isDirty": false,
|
1851
|
+
"label": "tableRef:Kv",
|
1852
|
+
"meta": {
|
1853
|
+
"liveStoreRefType": "table",
|
1854
|
+
},
|
1855
|
+
"previousResult": {
|
1856
|
+
"_tag": "Some",
|
1857
|
+
"value": "null",
|
1858
|
+
},
|
1859
|
+
"refreshes": 0,
|
1860
|
+
"sub": [],
|
1861
|
+
"super": [],
|
1862
|
+
},
|
1863
|
+
{
|
1864
|
+
"_tag": "thunk",
|
1865
|
+
"id": "node-6",
|
1866
|
+
"isDestroyed": false,
|
1867
|
+
"isDirty": false,
|
1647
1868
|
"label": "libraryTracksView1:results",
|
1648
1869
|
"meta": {
|
1649
1870
|
"liveStoreThunkType": "db.result",
|
@@ -1657,7 +1878,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > same \`useQuery\` hook inv
|
|
1657
1878
|
"node-1",
|
1658
1879
|
],
|
1659
1880
|
"super": [
|
1660
|
-
"node-
|
1881
|
+
"node-7",
|
1661
1882
|
],
|
1662
1883
|
},
|
1663
1884
|
],
|
@@ -1665,12 +1886,12 @@ exports[`useQuery (strictMode={ strictMode: true }) > same \`useQuery\` hook inv
|
|
1665
1886
|
"effects": [
|
1666
1887
|
{
|
1667
1888
|
"_tag": "effect",
|
1668
|
-
"id": "node-
|
1889
|
+
"id": "node-7",
|
1669
1890
|
"invocations": 2,
|
1670
1891
|
"isDestroyed": false,
|
1671
1892
|
"label": "subscribe:libraryTracksView1",
|
1672
1893
|
"sub": [
|
1673
|
-
"node-
|
1894
|
+
"node-6",
|
1674
1895
|
],
|
1675
1896
|
},
|
1676
1897
|
],
|
@@ -1696,7 +1917,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > same \`useQuery\` hook inv
|
|
1696
1917
|
"refreshes": 2,
|
1697
1918
|
"sub": [],
|
1698
1919
|
"super": [
|
1699
|
-
"node-
|
1920
|
+
"node-8",
|
1700
1921
|
],
|
1701
1922
|
},
|
1702
1923
|
{
|
@@ -1750,9 +1971,26 @@ exports[`useQuery (strictMode={ strictMode: true }) > same \`useQuery\` hook inv
|
|
1750
1971
|
"sub": [],
|
1751
1972
|
"super": [],
|
1752
1973
|
},
|
1974
|
+
{
|
1975
|
+
"_tag": "ref",
|
1976
|
+
"id": "node-5",
|
1977
|
+
"isDestroyed": false,
|
1978
|
+
"isDirty": false,
|
1979
|
+
"label": "tableRef:Kv",
|
1980
|
+
"meta": {
|
1981
|
+
"liveStoreRefType": "table",
|
1982
|
+
},
|
1983
|
+
"previousResult": {
|
1984
|
+
"_tag": "Some",
|
1985
|
+
"value": "null",
|
1986
|
+
},
|
1987
|
+
"refreshes": 0,
|
1988
|
+
"sub": [],
|
1989
|
+
"super": [],
|
1990
|
+
},
|
1753
1991
|
{
|
1754
1992
|
"_tag": "thunk",
|
1755
|
-
"id": "node-
|
1993
|
+
"id": "node-8",
|
1756
1994
|
"isDestroyed": false,
|
1757
1995
|
"isDirty": false,
|
1758
1996
|
"label": "libraryTracksView2:results",
|
@@ -1768,7 +2006,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > same \`useQuery\` hook inv
|
|
1768
2006
|
"node-1",
|
1769
2007
|
],
|
1770
2008
|
"super": [
|
1771
|
-
"node-
|
2009
|
+
"node-9",
|
1772
2010
|
],
|
1773
2011
|
},
|
1774
2012
|
],
|
@@ -1776,12 +2014,12 @@ exports[`useQuery (strictMode={ strictMode: true }) > same \`useQuery\` hook inv
|
|
1776
2014
|
"effects": [
|
1777
2015
|
{
|
1778
2016
|
"_tag": "effect",
|
1779
|
-
"id": "node-
|
2017
|
+
"id": "node-9",
|
1780
2018
|
"invocations": 1,
|
1781
2019
|
"isDestroyed": false,
|
1782
2020
|
"label": "subscribe:libraryTracksView2",
|
1783
2021
|
"sub": [
|
1784
|
-
"node-
|
2022
|
+
"node-8",
|
1785
2023
|
],
|
1786
2024
|
},
|
1787
2025
|
],
|
@@ -1807,7 +2045,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > simple 1`] = `
|
|
1807
2045
|
"refreshes": 0,
|
1808
2046
|
"sub": [],
|
1809
2047
|
"super": [
|
1810
|
-
"node-
|
2048
|
+
"node-6",
|
1811
2049
|
],
|
1812
2050
|
},
|
1813
2051
|
{
|
@@ -1862,10 +2100,27 @@ exports[`useQuery (strictMode={ strictMode: true }) > simple 1`] = `
|
|
1862
2100
|
"super": [],
|
1863
2101
|
},
|
1864
2102
|
{
|
1865
|
-
"_tag": "
|
2103
|
+
"_tag": "ref",
|
1866
2104
|
"id": "node-5",
|
1867
2105
|
"isDestroyed": false,
|
1868
2106
|
"isDirty": false,
|
2107
|
+
"label": "tableRef:Kv",
|
2108
|
+
"meta": {
|
2109
|
+
"liveStoreRefType": "table",
|
2110
|
+
},
|
2111
|
+
"previousResult": {
|
2112
|
+
"_tag": "Some",
|
2113
|
+
"value": "null",
|
2114
|
+
},
|
2115
|
+
"refreshes": 0,
|
2116
|
+
"sub": [],
|
2117
|
+
"super": [],
|
2118
|
+
},
|
2119
|
+
{
|
2120
|
+
"_tag": "thunk",
|
2121
|
+
"id": "node-6",
|
2122
|
+
"isDestroyed": false,
|
2123
|
+
"isDirty": false,
|
1869
2124
|
"label": "select * from todos:results",
|
1870
2125
|
"meta": {
|
1871
2126
|
"liveStoreThunkType": "db.result",
|
@@ -1879,7 +2134,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > simple 1`] = `
|
|
1879
2134
|
"node-1",
|
1880
2135
|
],
|
1881
2136
|
"super": [
|
1882
|
-
"node-
|
2137
|
+
"node-7",
|
1883
2138
|
],
|
1884
2139
|
},
|
1885
2140
|
],
|
@@ -1887,12 +2142,12 @@ exports[`useQuery (strictMode={ strictMode: true }) > simple 1`] = `
|
|
1887
2142
|
"effects": [
|
1888
2143
|
{
|
1889
2144
|
"_tag": "effect",
|
1890
|
-
"id": "node-
|
2145
|
+
"id": "node-7",
|
1891
2146
|
"invocations": 1,
|
1892
2147
|
"isDestroyed": false,
|
1893
2148
|
"label": "subscribe:select * from todos",
|
1894
2149
|
"sub": [
|
1895
|
-
"node-
|
2150
|
+
"node-6",
|
1896
2151
|
],
|
1897
2152
|
},
|
1898
2153
|
],
|
@@ -1918,7 +2173,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > simple 2`] = `
|
|
1918
2173
|
"refreshes": 1,
|
1919
2174
|
"sub": [],
|
1920
2175
|
"super": [
|
1921
|
-
"node-
|
2176
|
+
"node-6",
|
1922
2177
|
],
|
1923
2178
|
},
|
1924
2179
|
{
|
@@ -1973,10 +2228,27 @@ exports[`useQuery (strictMode={ strictMode: true }) > simple 2`] = `
|
|
1973
2228
|
"super": [],
|
1974
2229
|
},
|
1975
2230
|
{
|
1976
|
-
"_tag": "
|
2231
|
+
"_tag": "ref",
|
1977
2232
|
"id": "node-5",
|
1978
2233
|
"isDestroyed": false,
|
1979
2234
|
"isDirty": false,
|
2235
|
+
"label": "tableRef:Kv",
|
2236
|
+
"meta": {
|
2237
|
+
"liveStoreRefType": "table",
|
2238
|
+
},
|
2239
|
+
"previousResult": {
|
2240
|
+
"_tag": "Some",
|
2241
|
+
"value": "null",
|
2242
|
+
},
|
2243
|
+
"refreshes": 0,
|
2244
|
+
"sub": [],
|
2245
|
+
"super": [],
|
2246
|
+
},
|
2247
|
+
{
|
2248
|
+
"_tag": "thunk",
|
2249
|
+
"id": "node-6",
|
2250
|
+
"isDestroyed": false,
|
2251
|
+
"isDirty": false,
|
1980
2252
|
"label": "select * from todos:results",
|
1981
2253
|
"meta": {
|
1982
2254
|
"liveStoreThunkType": "db.result",
|
@@ -1990,7 +2262,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > simple 2`] = `
|
|
1990
2262
|
"node-1",
|
1991
2263
|
],
|
1992
2264
|
"super": [
|
1993
|
-
"node-
|
2265
|
+
"node-7",
|
1994
2266
|
],
|
1995
2267
|
},
|
1996
2268
|
],
|
@@ -1998,12 +2270,12 @@ exports[`useQuery (strictMode={ strictMode: true }) > simple 2`] = `
|
|
1998
2270
|
"effects": [
|
1999
2271
|
{
|
2000
2272
|
"_tag": "effect",
|
2001
|
-
"id": "node-
|
2273
|
+
"id": "node-7",
|
2002
2274
|
"invocations": 2,
|
2003
2275
|
"isDestroyed": false,
|
2004
2276
|
"label": "subscribe:select * from todos",
|
2005
2277
|
"sub": [
|
2006
|
-
"node-
|
2278
|
+
"node-6",
|
2007
2279
|
],
|
2008
2280
|
},
|
2009
2281
|
],
|