Skip to content

Commit 94bf12c

Browse files
committed
docs: remove offline-first approach from migration guide
1 parent 3cf9728 commit 94bf12c

5 files changed

Lines changed: 36 additions & 892 deletions

File tree

src/directory/directory.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1911,9 +1911,7 @@ export const directory = {
19111911
{
19121912
path: 'src/pages/gen1/[platform]/build-a-backend/more-features/datastore/migrate-from-datastore/add-local-caching/index.mdx'
19131913
},
1914-
{
1915-
path: 'src/pages/gen1/[platform]/build-a-backend/more-features/datastore/migrate-from-datastore/build-offline-support/index.mdx'
1916-
},
1914+
19171915
{
19181916
path: 'src/pages/gen1/[platform]/build-a-backend/more-features/datastore/migrate-from-datastore/advanced-patterns/index.mdx'
19191917
},

src/pages/gen1/[platform]/build-a-backend/more-features/datastore/migrate-from-datastore/advanced-patterns/index.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -530,23 +530,23 @@ DataStore dispatched 9 distinct events via Hub. Of the 9:
530530
| Partially replaced | 2 | `networkStatus` (use browser APIs), `subscriptionsEstablished` (monitor subscription callbacks) |
531531
| No equivalent | 7 | `syncQueriesStarted`, `syncQueriesReady`, `modelSynced`, `outboxMutationEnqueued`, `outboxMutationProcessed`, `outboxStatus`, `storageSubscribed` |
532532

533-
The 7 with no equivalent describe sync engine behavior, and Apollo Client does not have a sync engine. For the Offline-First strategy, the custom sync engine and mutation queue provide extension points for emitting similar events.
533+
The 7 with no equivalent describe sync engine behavior, and Apollo Client does not have a sync engine.
534534

535535
### Selective sync (syncExpressions)
536536

537-
DataStore's `syncExpressions` let you filter which records synced from server to local store. Apollo has no equivalent for API Only or Local Caching. For Offline-First, the custom sync engine could implement sync filters, but this requires custom code.
537+
DataStore's `syncExpressions` let you filter which records synced from server to local store. Apollo has no equivalent for API Only or Local Caching.
538538

539539
### Lifecycle methods
540540

541541
| Method | Apollo Equivalent | Rating |
542542
|---|---|---|
543543
| `DataStore.start()` | None (Apollo queries on demand) | None |
544544
| `DataStore.stop()` | Unsubscribe manually; `apolloClient.stop()` cancels in-flight | None |
545-
| `DataStore.clear()` | `apolloClient.clearStore()` + `persistor.purge()` + Dexie `db.delete()` | Partial |
545+
| `DataStore.clear()` | `apolloClient.clearStore()` + `persistor.purge()` | Partial |
546546

547547
### Conflict handler configuration
548548

549-
This IS covered in the migration guide. API Only/Local Caching handle conflicts server-side. Offline-First uses custom client-side conflict resolution. **Rating: Full** (different location, same capability).
549+
This IS covered in the migration guide. API Only and Local Caching handle conflicts server-side. **Rating: Full** (different location, same capability).
550550

551551
### Summary
552552

0 commit comments

Comments
 (0)