Commit 15c772f
Add warning for preload on on-demand collections (#871)
* feat: warn when calling preload() on on-demand collections
Calling .preload() on a collection with syncMode "on-demand" is a no-op
since data is only loaded when queries request it. This change adds a
warning to help users understand this behavior and suggests creating a
live query instead.
The warning includes a link to the Query-Driven Sync blog post for
additional context and guidance.
* chore: add changeset for preload on-demand warning
---------
Co-authored-by: Claude <[email protected]>1 parent 6b8d952 commit 15c772f
2 files changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
234 | 244 | | |
235 | 245 | | |
236 | 246 | | |
| |||
0 commit comments