@rdlabo/ionic-angular-kit 22.0.0-beta.pr98.sha390e3b036629 → 22.0.0-beta.pr98.sha8b606dccfc3a

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.
@@ -3432,6 +3432,8 @@ class OfflineSyncService {
3432
3432
  throw new Error('Offline session changed before the command could be persisted');
3433
3433
  }
3434
3434
  const known = await this.#readKnownCommands(repository);
3435
+ const putCommandIds = new Set(entries.map((entry) => entry.command.commandId));
3436
+ const effectiveRemoveCommandIds = removeCommandIds?.filter((commandId) => !putCommandIds.has(commandId));
3435
3437
  const remaining = [
3436
3438
  ...known.filter((command) => !(removeCommandIds ?? []).includes(command.commandId)),
3437
3439
  ...entries.map((entry) => entry.command),
@@ -3448,7 +3450,7 @@ class OfflineSyncService {
3448
3450
  putRows: rematerialized.putRows,
3449
3451
  removeRows: rematerialized.removeRows,
3450
3452
  putCommands: entries.map((entry) => entry.command),
3451
- removeCommandIds,
3453
+ removeCommandIds: effectiveRemoveCommandIds,
3452
3454
  });
3453
3455
  await this.#refreshState(generation, repository).catch((error) => this.#reportError(error));
3454
3456
  if (options.flush !== false && this.#canSynchronize())