fix: Close generated sync sessions and expose the shared demo (#135)

This commit is contained in:
Marcelo Mendonça Soares 2026-09-16 11:40:42 -03:00 • committed by GitHub
commit 0f4b8116f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -175,6 +175,14 @@ await client.offlineSync.syncOnce(session);
final syncSession = client.offlineSync.syncContinuously(session);
```
When disposing a client replica, cancel its sync subscription before closing
the local database:
```dart
await syncSession.cancel();
await session.close();
```
## Usage
Once wired up, use normal generated-model CRUD against the `session` instance,