Commit ccc3255
fix(vue-db): force startSync after user spread, guard stale onFirstReady
1. Config-object path: move `startSync: true` after the user spread so it
cannot be accidentally overridden to false. `gcTime` stays before the
spread so users CAN customize it — this matches React's adapter pattern.
2. onFirstReady callback: capture collection identity at registration time
and skip the status update if the collection has changed by the time
the callback fires. Prevents stale callbacks from overwriting the
current collection's status ref.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9542d22 commit ccc3255
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
320 | 320 | | |
321 | 321 | | |
322 | 322 | | |
323 | | - | |
324 | 323 | | |
325 | 324 | | |
| 325 | + | |
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| |||
398 | 398 | | |
399 | 399 | | |
400 | 400 | | |
401 | | - | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
402 | 405 | | |
403 | | - | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
404 | 409 | | |
405 | 410 | | |
406 | 411 | | |
| |||
0 commit comments