@mushi-mushi/core 1.22.1 → 1.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1237,6 +1237,7 @@ function createOfflineQueue(config = {}) {
1237
1237
  }
1238
1238
  function startAutoSync(client) {
1239
1239
  if (!enabled || !syncOnReconnect || typeof window === "undefined") return;
1240
+ if (syncCleanup) stopAutoSync();
1240
1241
  const tryFlush = () => {
1241
1242
  if (navigator.onLine) {
1242
1243
  flush(client).catch((err) => {