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
@@ -652,9 +649,9 @@ export abstract class AbstractPowerSyncDatabase extends BaseObserver<PowerSyncDB
652
649
*
653
650
* This can be used to upload multiple transactions in a single batch, e.g with:
654
651
*
655
-
* ```TypeScript
656
-
* let lastTransaction: CrudTransaction | null = null;
657
-
* let batch: CrudEntry[] = [];
652
+
* ```JavaScript
653
+
* let lastTransaction = null;
654
+
* let batch = [];
658
655
*
659
656
* for await (const transaction of database.getCrudTransactions()) {
660
657
* batch.push(...transaction.crud);
@@ -667,10 +664,15 @@ export abstract class AbstractPowerSyncDatabase extends BaseObserver<PowerSyncDB
667
664
* ```
668
665
*
669
666
* If there is no local data to upload, the async iterator complete without emitting any items.
667
+
*
668
+
* Note that iterating over async iterables requires a [polyfill](https://github.com/powersync-ja/powersync-js/tree/main/packages/react-native#babel-plugins-watched-queries)
0 commit comments