-
Notifications
You must be signed in to change notification settings - Fork 169
Closed
Description
- I've validated the bug against the latest version of DB packages
Describe the bug
If a LiveQuery uses a join with a collection that uses progressive syncMode this error happens (I tested using electric collections)
Uncaught (in promise) Error: Snapshot requests are not supported in full mode, as the consumer is guaranteed to observe all data
at ShapeStream.<anonymous> (index.mjs:966:15)
at Generator.next (<anonymous>)
at index.mjs:65:61
at new Promise (<anonymous>)
at __async (index.mjs:49:10)
at ShapeStream.requestSnapshot (index.mjs:964:12)
at DeduplicatedLoadSubset.loadSubset [as _loadSubset] (electric.js:312:24)
at DeduplicatedLoadSubset.loadSubset [as syncLoadSubsetFn] (subset-dedupe.js:41:34)
at CollectionSyncManager.loadSubset (sync.js:203:27)
at CollectionSubscription.requestSnapshot (subscription.js:113:46)
Also switching the syncMode to on-demand fixes the error (I think it loads all the joined collections cause I do not see any subset param sent in the request).
To Reproduce
Just a useLiveQuery with a join between collections with syncMode: progressive
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels