@livestore/react 0.4.0-dev.8 → 0.4.0

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 (85) hide show
  1. package/README.md +1 -1
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/StoreRegistryContext.d.ts +56 -0
  4. package/dist/StoreRegistryContext.d.ts.map +1 -0
  5. package/dist/StoreRegistryContext.js +61 -0
  6. package/dist/StoreRegistryContext.js.map +1 -0
  7. package/dist/__tests__/fixture.d.ts +12 -283
  8. package/dist/__tests__/fixture.d.ts.map +1 -1
  9. package/dist/__tests__/fixture.js +12 -86
  10. package/dist/__tests__/fixture.js.map +1 -1
  11. package/dist/experimental/components/LiveList.d.ts +4 -2
  12. package/dist/experimental/components/LiveList.d.ts.map +1 -1
  13. package/dist/experimental/components/LiveList.js +10 -8
  14. package/dist/experimental/components/LiveList.js.map +1 -1
  15. package/dist/mod.d.ts +8 -5
  16. package/dist/mod.d.ts.map +1 -1
  17. package/dist/mod.js +6 -4
  18. package/dist/mod.js.map +1 -1
  19. package/dist/useClientDocument.d.ts +12 -4
  20. package/dist/useClientDocument.d.ts.map +1 -1
  21. package/dist/useClientDocument.js +4 -18
  22. package/dist/useClientDocument.js.map +1 -1
  23. package/dist/useClientDocument.test.js +21 -9
  24. package/dist/useClientDocument.test.js.map +1 -1
  25. package/dist/useQuery.d.ts +29 -8
  26. package/dist/useQuery.d.ts.map +1 -1
  27. package/dist/useQuery.js +43 -70
  28. package/dist/useQuery.js.map +1 -1
  29. package/dist/useQuery.test.js +57 -13
  30. package/dist/useQuery.test.js.map +1 -1
  31. package/dist/useRcResource.d.ts +1 -1
  32. package/dist/useRcResource.d.ts.map +1 -1
  33. package/dist/useRcResource.js +41 -34
  34. package/dist/useRcResource.js.map +1 -1
  35. package/dist/useRcResource.test.js +72 -50
  36. package/dist/useRcResource.test.js.map +1 -1
  37. package/dist/useStore.d.ts +74 -7
  38. package/dist/useStore.d.ts.map +1 -1
  39. package/dist/useStore.js +82 -16
  40. package/dist/useStore.js.map +1 -1
  41. package/dist/useStore.test.d.ts +2 -0
  42. package/dist/useStore.test.d.ts.map +1 -0
  43. package/dist/useStore.test.js +241 -0
  44. package/dist/useStore.test.js.map +1 -0
  45. package/dist/useSyncStatus.d.ts +22 -0
  46. package/dist/useSyncStatus.d.ts.map +1 -0
  47. package/dist/useSyncStatus.js +28 -0
  48. package/dist/useSyncStatus.js.map +1 -0
  49. package/package.json +68 -25
  50. package/src/StoreRegistryContext.tsx +70 -0
  51. package/src/__snapshots__/useClientDocument.test.tsx.snap +112 -78
  52. package/src/__snapshots__/useQuery.test.tsx.snap +12 -12
  53. package/src/__tests__/fixture.tsx +29 -133
  54. package/src/experimental/components/LiveList.tsx +23 -10
  55. package/src/mod.ts +8 -12
  56. package/src/useClientDocument.test.tsx +90 -79
  57. package/src/useClientDocument.ts +19 -38
  58. package/src/useQuery.test.tsx +99 -13
  59. package/src/useQuery.ts +74 -89
  60. package/src/useRcResource.test.tsx +115 -59
  61. package/src/useRcResource.ts +51 -37
  62. package/src/useStore.test.tsx +347 -0
  63. package/src/useStore.ts +115 -22
  64. package/src/useSyncStatus.ts +34 -0
  65. package/dist/LiveStoreContext.d.ts +0 -13
  66. package/dist/LiveStoreContext.d.ts.map +0 -1
  67. package/dist/LiveStoreContext.js +0 -3
  68. package/dist/LiveStoreContext.js.map +0 -1
  69. package/dist/LiveStoreProvider.d.ts +0 -65
  70. package/dist/LiveStoreProvider.d.ts.map +0 -1
  71. package/dist/LiveStoreProvider.js +0 -221
  72. package/dist/LiveStoreProvider.js.map +0 -1
  73. package/dist/LiveStoreProvider.test.d.ts +0 -2
  74. package/dist/LiveStoreProvider.test.d.ts.map +0 -1
  75. package/dist/LiveStoreProvider.test.js +0 -117
  76. package/dist/LiveStoreProvider.test.js.map +0 -1
  77. package/dist/utils/stack-info.d.ts +0 -4
  78. package/dist/utils/stack-info.d.ts.map +0 -1
  79. package/dist/utils/stack-info.js +0 -10
  80. package/dist/utils/stack-info.js.map +0 -1
  81. package/src/LiveStoreContext.ts +0 -14
  82. package/src/LiveStoreProvider.test.tsx +0 -248
  83. package/src/LiveStoreProvider.tsx +0 -413
  84. package/src/ambient.d.ts +0 -1
  85. package/src/utils/stack-info.ts +0 -13
package/package.json CHANGED
@@ -1,45 +1,88 @@
1
1
  {
2
2
  "name": "@livestore/react",
3
- "version": "0.4.0-dev.8",
3
+ "version": "0.4.0",
4
+ "license": "Apache-2.0",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/livestorejs/livestore.git"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "package.json",
12
+ "src"
13
+ ],
4
14
  "type": "module",
5
15
  "sideEffects": false,
6
16
  "exports": {
7
17
  ".": "./dist/mod.js",
8
18
  "./experimental": "./dist/experimental/mod.js"
9
19
  },
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
10
23
  "dependencies": {
11
24
  "@opentelemetry/api": "1.9.0",
12
- "@livestore/common": "0.4.0-dev.8",
13
- "@livestore/livestore": "0.4.0-dev.8",
14
- "@livestore/utils": "0.4.0-dev.8"
25
+ "@livestore/common": "^0.4.0",
26
+ "@livestore/framework-toolkit": "^0.4.0",
27
+ "@livestore/livestore": "^0.4.0",
28
+ "@livestore/utils": "^0.4.0"
15
29
  },
16
30
  "devDependencies": {
17
- "@opentelemetry/sdk-trace-base": "^2.0.1",
18
- "@testing-library/dom": "^10.4.1",
19
- "@testing-library/react": "^16.3.0",
20
- "@types/react": "19.1.11",
21
- "@types/react-dom": "19.1.8",
22
- "jsdom": "^26.1.0",
23
- "react": "19.0.0",
24
- "react-dom": "19.0.0",
25
- "react-window": "^1.8.11",
26
- "typescript": "5.9.2",
27
- "vite": "7.1.3",
31
+ "@opentelemetry/sdk-trace-base": "2.2.0",
32
+ "@testing-library/dom": "10.4.1",
33
+ "@testing-library/react": "16.3.1",
34
+ "@types/react": "19.2.7",
35
+ "@types/react-dom": "19.2.3",
36
+ "@types/react-window": "1.8.8",
37
+ "jsdom": "26.1.0",
38
+ "react": "19.2.3",
39
+ "react-dom": "19.2.3",
40
+ "react-window": "1.8.11",
41
+ "typescript": "5.9.3",
42
+ "vite": "7.3.1",
28
43
  "vitest": "3.2.4",
29
- "@livestore/adapter-web": "0.4.0-dev.8",
30
- "@livestore/utils-dev": "0.4.0-dev.8"
44
+ "@livestore/utils-dev": "^0.4.0",
45
+ "@livestore/adapter-web": "^0.4.0"
31
46
  },
32
- "files": [
33
- "package.json",
34
- "src",
35
- "dist"
36
- ],
37
- "license": "Apache-2.0",
38
47
  "peerDependencies": {
48
+ "@effect/ai": "^0.35.0",
49
+ "@effect/cli": "^0.75.1",
50
+ "@effect/cluster": "^0.58.2",
51
+ "@effect/experimental": "^0.60.0",
52
+ "@effect/opentelemetry": "^0.63.0",
53
+ "@effect/platform": "^0.96.1",
54
+ "@effect/platform-browser": "^0.76.0",
55
+ "@effect/platform-bun": "^0.89.0",
56
+ "@effect/platform-node": "^0.106.0",
57
+ "@effect/printer": "^0.49.0",
58
+ "@effect/printer-ansi": "^0.49.0",
59
+ "@effect/rpc": "^0.75.1",
60
+ "@effect/sql": "^0.51.1",
61
+ "@effect/typeclass": "^0.40.0",
62
+ "@effect/vitest": "^0.29.0",
63
+ "@opentelemetry/api": "^1.9.0",
64
+ "@opentelemetry/resources": "^2.2.0",
65
+ "@standard-schema/spec": "^1.1.0",
66
+ "effect": "^3.21.2",
39
67
  "react": "^19.0.0"
40
68
  },
41
- "publishConfig": {
42
- "access": "public"
69
+ "$genie": {
70
+ "source": "package.json.genie.ts",
71
+ "warning": "DO NOT EDIT - changes will be overwritten",
72
+ "workspaceClosureDirs": [
73
+ "packages/@livestore/adapter-web",
74
+ "packages/@livestore/common",
75
+ "packages/@livestore/common-cf",
76
+ "packages/@livestore/devtools-web-common",
77
+ "packages/@livestore/framework-toolkit",
78
+ "packages/@livestore/livestore",
79
+ "packages/@livestore/react",
80
+ "packages/@livestore/sqlite-wasm",
81
+ "packages/@livestore/utils",
82
+ "packages/@livestore/utils-dev",
83
+ "packages/@livestore/wa-sqlite",
84
+ "packages/@livestore/webmesh"
85
+ ]
43
86
  },
44
87
  "scripts": {
45
88
  "build": "tsc",
@@ -0,0 +1,70 @@
1
+ import * as React from 'react'
2
+
3
+ import type { StoreRegistry } from '@livestore/livestore'
4
+
5
+ export const StoreRegistryContext = React.createContext<StoreRegistry | undefined>(undefined)
6
+
7
+ export type StoreRegistryProviderProps = {
8
+ storeRegistry: StoreRegistry
9
+ children: React.ReactNode
10
+ }
11
+
12
+ /**
13
+ * React context provider that makes a {@link StoreRegistry} available to descendant components.
14
+ *
15
+ * Wrap your application (or a subtree) with this provider to enable {@link useStore} and
16
+ * {@link useStoreRegistry} hooks within that tree.
17
+ *
18
+ * @example
19
+ * ```tsx
20
+ * import { StoreRegistry } from '@livestore/livestore'
21
+ * import { StoreRegistryProvider } from '@livestore/react'
22
+ * import { unstable_batchedUpdates as batchUpdates } from 'react-dom'
23
+ *
24
+ * const storeRegistry = new StoreRegistry({
25
+ * defaultOptions: { batchUpdates }
26
+ * })
27
+ *
28
+ * function App() {
29
+ * return (
30
+ * <StoreRegistryProvider storeRegistry={storeRegistry}>
31
+ * <MyComponent />
32
+ * </StoreRegistryProvider>
33
+ * )
34
+ * }
35
+ * ```
36
+ */
37
+ export const StoreRegistryProvider = ({ storeRegistry, children }: StoreRegistryProviderProps): React.JSX.Element => {
38
+ return <StoreRegistryContext value={storeRegistry}>{children}</StoreRegistryContext>
39
+ }
40
+
41
+ /**
42
+ * Hook to access the {@link StoreRegistry} from context. Useful for advanced operations like preloading.
43
+ *
44
+ * @param override - Optional registry to use instead of the context value.
45
+ * When provided, skips context lookup entirely.
46
+ * @returns The registry provided by the nearest {@link StoreRegistryProvider} ancestor, or the `override` if provided.
47
+ * @throws Error if called outside a {@link StoreRegistryProvider} and no override is provided
48
+ *
49
+ * @example
50
+ * ```tsx
51
+ * function PreloadButton({ issueId }: { issueId: string }) {
52
+ * const storeRegistry = useStoreRegistry()
53
+ *
54
+ * const handleMouseEnter = () => {
55
+ * storeRegistry.preload(issueStoreOptions(issueId))
56
+ * }
57
+ *
58
+ * return <button onMouseEnter={handleMouseEnter}>View Issue</button>
59
+ * }
60
+ * ```
61
+ */
62
+ export const useStoreRegistry = (override?: StoreRegistry) => {
63
+ if (override !== undefined) return override
64
+
65
+ const storeRegistry = React.use(StoreRegistryContext)
66
+
67
+ if (storeRegistry == null) throw new Error('useStoreRegistry() must be used within <StoreRegistryProvider>')
68
+
69
+ return storeRegistry
70
+ }
@@ -8,6 +8,9 @@ exports[`useClientDocument > otel > should update the data based on component ke
8
8
  "storeId": "default",
9
9
  },
10
10
  "children": [
11
+ {
12
+ "_name": "makeClientSessionSyncProcessor",
13
+ },
11
14
  {
12
15
  "_name": "livestore.in-memory-db:execute",
13
16
  "attributes": {
@@ -21,29 +24,31 @@ exports[`useClientDocument > otel > should update the data based on component ke
21
24
  },
22
25
  },
23
26
  {
24
- "_name": "@livestore/common:LeaderSyncProcessor:push",
25
- "attributes": {
26
- "batch": "undefined",
27
- "batchSize": 1,
28
- },
29
- },
30
- {
31
- "_name": "@livestore/common:LeaderSyncProcessor:push",
32
- "attributes": {
33
- "batch": "undefined",
34
- "batchSize": 1,
35
- },
36
- },
37
- {
38
- "_name": "client-session-sync-processor:pull",
39
- "attributes": {
40
- "code.stacktrace": "<STACKTRACE>",
41
- "span.label": "⚠︎ Interrupted",
42
- "status.interrupted": true,
43
- },
44
- },
45
- {
46
- "_name": "LiveStore:sync",
27
+ "_name": "client-session-sync-processor:boot",
28
+ "children": [
29
+ {
30
+ "_name": "@livestore/common:LeaderSyncProcessor:push",
31
+ "attributes": {
32
+ "batch": "undefined",
33
+ "batchSize": 1,
34
+ },
35
+ },
36
+ {
37
+ "_name": "@livestore/common:LeaderSyncProcessor:push",
38
+ "attributes": {
39
+ "batch": "undefined",
40
+ "batchSize": 1,
41
+ },
42
+ },
43
+ {
44
+ "_name": "client-session-sync-processor:pull",
45
+ "attributes": {
46
+ "code.stacktrace": "<STACKTRACE>",
47
+ "span.label": "⚠︎ Interrupted",
48
+ "status.interrupted": true,
49
+ },
50
+ },
51
+ ],
47
52
  },
48
53
  {
49
54
  "_name": "LiveStore:commits",
@@ -194,14 +199,10 @@ exports[`useClientDocument > otel > should update the data based on component ke
194
199
  },
195
200
  "children": [
196
201
  {
197
- "_name": "client-session-sync-processor:push",
198
- "attributes": {
199
- "batchSize": 1,
200
- "eventCounts": "{
201
- "UserInfoSet": 1
202
- }",
203
- "mergeResultTag": "advance",
204
- },
202
+ "_name": "client-session-sync-processor:encode-events",
203
+ },
204
+ {
205
+ "_name": "client-session-sync-processor:materialize-events",
205
206
  "children": [
206
207
  {
207
208
  "_name": "client-session-sync-processor:materialize-event",
@@ -220,6 +221,16 @@ exports[`useClientDocument > otel > should update the data based on component ke
220
221
  },
221
222
  ],
222
223
  },
224
+ {
225
+ "_name": "client-session-sync-processor:push",
226
+ "attributes": {
227
+ "batchSize": 1,
228
+ "eventCounts": "{
229
+ "UserInfoSet": 1
230
+ }",
231
+ "mergeResultTag": "advance",
232
+ },
233
+ },
223
234
  ],
224
235
  },
225
236
  {
@@ -232,14 +243,10 @@ exports[`useClientDocument > otel > should update the data based on component ke
232
243
  },
233
244
  "children": [
234
245
  {
235
- "_name": "client-session-sync-processor:push",
236
- "attributes": {
237
- "batchSize": 1,
238
- "eventCounts": "{
239
- "UserInfoSet": 1
240
- }",
241
- "mergeResultTag": "advance",
242
- },
246
+ "_name": "client-session-sync-processor:encode-events",
247
+ },
248
+ {
249
+ "_name": "client-session-sync-processor:materialize-events",
243
250
  "children": [
244
251
  {
245
252
  "_name": "client-session-sync-processor:materialize-event",
@@ -258,6 +265,16 @@ exports[`useClientDocument > otel > should update the data based on component ke
258
265
  },
259
266
  ],
260
267
  },
268
+ {
269
+ "_name": "client-session-sync-processor:push",
270
+ "attributes": {
271
+ "batchSize": 1,
272
+ "eventCounts": "{
273
+ "UserInfoSet": 1
274
+ }",
275
+ "mergeResultTag": "advance",
276
+ },
277
+ },
261
278
  ],
262
279
  },
263
280
  ]
@@ -271,6 +288,9 @@ exports[`useClientDocument > otel > should update the data based on component ke
271
288
  "storeId": "default",
272
289
  },
273
290
  "children": [
291
+ {
292
+ "_name": "makeClientSessionSyncProcessor",
293
+ },
274
294
  {
275
295
  "_name": "livestore.in-memory-db:execute",
276
296
  "attributes": {
@@ -284,29 +304,31 @@ exports[`useClientDocument > otel > should update the data based on component ke
284
304
  },
285
305
  },
286
306
  {
287
- "_name": "@livestore/common:LeaderSyncProcessor:push",
288
- "attributes": {
289
- "batch": "undefined",
290
- "batchSize": 1,
291
- },
292
- },
293
- {
294
- "_name": "@livestore/common:LeaderSyncProcessor:push",
295
- "attributes": {
296
- "batch": "undefined",
297
- "batchSize": 1,
298
- },
299
- },
300
- {
301
- "_name": "client-session-sync-processor:pull",
302
- "attributes": {
303
- "code.stacktrace": "<STACKTRACE>",
304
- "span.label": "⚠︎ Interrupted",
305
- "status.interrupted": true,
306
- },
307
- },
308
- {
309
- "_name": "LiveStore:sync",
307
+ "_name": "client-session-sync-processor:boot",
308
+ "children": [
309
+ {
310
+ "_name": "@livestore/common:LeaderSyncProcessor:push",
311
+ "attributes": {
312
+ "batch": "undefined",
313
+ "batchSize": 1,
314
+ },
315
+ },
316
+ {
317
+ "_name": "@livestore/common:LeaderSyncProcessor:push",
318
+ "attributes": {
319
+ "batch": "undefined",
320
+ "batchSize": 1,
321
+ },
322
+ },
323
+ {
324
+ "_name": "client-session-sync-processor:pull",
325
+ "attributes": {
326
+ "code.stacktrace": "<STACKTRACE>",
327
+ "span.label": "⚠︎ Interrupted",
328
+ "status.interrupted": true,
329
+ },
330
+ },
331
+ ],
310
332
  },
311
333
  {
312
334
  "_name": "LiveStore:commits",
@@ -395,14 +417,10 @@ exports[`useClientDocument > otel > should update the data based on component ke
395
417
  },
396
418
  "children": [
397
419
  {
398
- "_name": "client-session-sync-processor:push",
399
- "attributes": {
400
- "batchSize": 1,
401
- "eventCounts": "{
402
- "UserInfoSet": 1
403
- }",
404
- "mergeResultTag": "advance",
405
- },
420
+ "_name": "client-session-sync-processor:encode-events",
421
+ },
422
+ {
423
+ "_name": "client-session-sync-processor:materialize-events",
406
424
  "children": [
407
425
  {
408
426
  "_name": "client-session-sync-processor:materialize-event",
@@ -421,6 +439,16 @@ exports[`useClientDocument > otel > should update the data based on component ke
421
439
  },
422
440
  ],
423
441
  },
442
+ {
443
+ "_name": "client-session-sync-processor:push",
444
+ "attributes": {
445
+ "batchSize": 1,
446
+ "eventCounts": "{
447
+ "UserInfoSet": 1
448
+ }",
449
+ "mergeResultTag": "advance",
450
+ },
451
+ },
424
452
  ],
425
453
  },
426
454
  {
@@ -433,14 +461,10 @@ exports[`useClientDocument > otel > should update the data based on component ke
433
461
  },
434
462
  "children": [
435
463
  {
436
- "_name": "client-session-sync-processor:push",
437
- "attributes": {
438
- "batchSize": 1,
439
- "eventCounts": "{
440
- "UserInfoSet": 1
441
- }",
442
- "mergeResultTag": "advance",
443
- },
464
+ "_name": "client-session-sync-processor:encode-events",
465
+ },
466
+ {
467
+ "_name": "client-session-sync-processor:materialize-events",
444
468
  "children": [
445
469
  {
446
470
  "_name": "client-session-sync-processor:materialize-event",
@@ -459,6 +483,16 @@ exports[`useClientDocument > otel > should update the data based on component ke
459
483
  },
460
484
  ],
461
485
  },
486
+ {
487
+ "_name": "client-session-sync-processor:push",
488
+ "attributes": {
489
+ "batchSize": 1,
490
+ "eventCounts": "{
491
+ "UserInfoSet": 1
492
+ }",
493
+ "mergeResultTag": "advance",
494
+ },
495
+ },
462
496
  ],
463
497
  },
464
498
  ]
@@ -101,7 +101,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
101
101
  },
102
102
  "previousResult": {
103
103
  "_tag": "Some",
104
- "value": "{"query":"SELECT * FROM 'todos' WHERE id = ?","bindValues":["t1"],"queriedTables":{}}",
104
+ "value": "{"query":"SELECT * FROM 'todos' WHERE \\"id\\" = ?","bindValues":["t1"],"queriedTables":{}}",
105
105
  },
106
106
  "recomputations": 1,
107
107
  "sub": [
@@ -158,7 +158,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
158
158
  "id": "node-9",
159
159
  "invocations": 1,
160
160
  "isDestroyed": false,
161
- "label": "subscribe:SELECT * FROM 'todos' WHERE id = ?",
161
+ "label": "subscribe:SELECT * FROM 'todos' WHERE "id" = ?",
162
162
  "sub": [
163
163
  "node-7",
164
164
  ],
@@ -268,7 +268,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
268
268
  },
269
269
  "previousResult": {
270
270
  "_tag": "Some",
271
- "value": "{"query":"SELECT * FROM 'todos' WHERE id = ?","bindValues":["t1"],"queriedTables":{}}",
271
+ "value": "{"query":"SELECT * FROM 'todos' WHERE \\"id\\" = ?","bindValues":["t1"],"queriedTables":{}}",
272
272
  },
273
273
  "recomputations": 1,
274
274
  "sub": [
@@ -325,7 +325,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
325
325
  "id": "node-9",
326
326
  "invocations": 2,
327
327
  "isDestroyed": false,
328
- "label": "subscribe:SELECT * FROM 'todos' WHERE id = ?",
328
+ "label": "subscribe:SELECT * FROM 'todos' WHERE "id" = ?",
329
329
  "sub": [
330
330
  "node-7",
331
331
  ],
@@ -435,7 +435,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
435
435
  },
436
436
  "previousResult": {
437
437
  "_tag": "Some",
438
- "value": "{"query":"SELECT * FROM 'todos' WHERE id = ?","bindValues":["t2"],"queriedTables":{}}",
438
+ "value": "{"query":"SELECT * FROM 'todos' WHERE \\"id\\" = ?","bindValues":["t2"],"queriedTables":{}}",
439
439
  },
440
440
  "recomputations": 2,
441
441
  "sub": [
@@ -492,7 +492,7 @@ exports[`useQuery (strictMode={ strictMode: false }) > filtered dependency query
492
492
  "id": "node-9",
493
493
  "invocations": 3,
494
494
  "isDestroyed": false,
495
- "label": "subscribe:SELECT * FROM 'todos' WHERE id = ?",
495
+ "label": "subscribe:SELECT * FROM 'todos' WHERE "id" = ?",
496
496
  "sub": [
497
497
  "node-7",
498
498
  ],
@@ -1242,7 +1242,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
1242
1242
  },
1243
1243
  "previousResult": {
1244
1244
  "_tag": "Some",
1245
- "value": "{"query":"SELECT * FROM 'todos' WHERE id = ?","bindValues":["t1"],"queriedTables":{}}",
1245
+ "value": "{"query":"SELECT * FROM 'todos' WHERE \\"id\\" = ?","bindValues":["t1"],"queriedTables":{}}",
1246
1246
  },
1247
1247
  "recomputations": 1,
1248
1248
  "sub": [
@@ -1299,7 +1299,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
1299
1299
  "id": "node-9",
1300
1300
  "invocations": 1,
1301
1301
  "isDestroyed": false,
1302
- "label": "subscribe:SELECT * FROM 'todos' WHERE id = ?",
1302
+ "label": "subscribe:SELECT * FROM 'todos' WHERE "id" = ?",
1303
1303
  "sub": [
1304
1304
  "node-7",
1305
1305
  ],
@@ -1409,7 +1409,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
1409
1409
  },
1410
1410
  "previousResult": {
1411
1411
  "_tag": "Some",
1412
- "value": "{"query":"SELECT * FROM 'todos' WHERE id = ?","bindValues":["t1"],"queriedTables":{}}",
1412
+ "value": "{"query":"SELECT * FROM 'todos' WHERE \\"id\\" = ?","bindValues":["t1"],"queriedTables":{}}",
1413
1413
  },
1414
1414
  "recomputations": 1,
1415
1415
  "sub": [
@@ -1466,7 +1466,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
1466
1466
  "id": "node-9",
1467
1467
  "invocations": 2,
1468
1468
  "isDestroyed": false,
1469
- "label": "subscribe:SELECT * FROM 'todos' WHERE id = ?",
1469
+ "label": "subscribe:SELECT * FROM 'todos' WHERE "id" = ?",
1470
1470
  "sub": [
1471
1471
  "node-7",
1472
1472
  ],
@@ -1576,7 +1576,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
1576
1576
  },
1577
1577
  "previousResult": {
1578
1578
  "_tag": "Some",
1579
- "value": "{"query":"SELECT * FROM 'todos' WHERE id = ?","bindValues":["t2"],"queriedTables":{}}",
1579
+ "value": "{"query":"SELECT * FROM 'todos' WHERE \\"id\\" = ?","bindValues":["t2"],"queriedTables":{}}",
1580
1580
  },
1581
1581
  "recomputations": 2,
1582
1582
  "sub": [
@@ -1633,7 +1633,7 @@ exports[`useQuery (strictMode={ strictMode: true }) > filtered dependency query
1633
1633
  "id": "node-9",
1634
1634
  "invocations": 3,
1635
1635
  "isDestroyed": false,
1636
- "label": "subscribe:SELECT * FROM 'todos' WHERE id = ?",
1636
+ "label": "subscribe:SELECT * FROM 'todos' WHERE "id" = ?",
1637
1637
  "sub": [
1638
1638
  "node-7",
1639
1639
  ],