You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The library automatically wraps sync operations in transactions, so reactive queries update when cloud changes arrive.
@@ -970,6 +972,8 @@ function TaskManager() {
970
972
971
973
**Important:**Direct`execute()`callsdoNOTtriggerreactivequeries. Totriggerreactivequeries, use `useSqliteTransaction()` instead.
972
974
975
+
> **Note:**Thishookautomaticallysyncschangestothecloudaftereachwrite, so your data is pushed immediately. If you use op-sqlite's `db.execute()` directly instead, changes will **not** be synced automatically — you would need to call `db.execute('SELECT cloudsync_network_send_changes()')` manually.
976
+
973
977
#### `useSqliteTransaction()`
974
978
975
979
Execute SQL commands within a transaction for atomic write operations.
>**Note:**Thishookautomaticallysyncschangestothecloudaftereachtransactioncommits, so your data is pushed immediately. If you use op-sqlite's `db.transaction()` directly instead, changes will **not** be synced automatically — you would need to call `db.execute('SELECT cloudsync_network_send_changes()')` manually.
1032
+
1027
1033
## 🚨 Error Handling
1028
1034
1029
1035
The library separates **fatal database errors** from **recoverable sync errors** to enable true offline-first operation.
@@ -1109,6 +1115,6 @@ Check out the [examples](./examples) directory for complete working examples:
1109
1115
1110
1116
## 🔗 Links
1111
1117
1112
-
- [SQLite Sync Documentation](https://docs.sqlitecloud.io/docs/sqlite-sync) - Detailed sync docs with API references and best practices
1118
+
- [SQLiteSyncDocumentation](https://docs.sqlitecloud.io/docs/sqlite-sync-introduction) - Detailed sync docs with API references and best practices
1113
1119
- [SQLiteCloudDashboard](https://dashboard.sqlitecloud.io/) - Manage your databases
0 commit comments