Exported function
ExportonCartChanged from the extension module:
CartOperations to create the returned mutations. See Cart operations and Data models.
Execution behavior
- Native can invoke the hook repeatedly, up to three passes.
- Each pass receives the latest cart after previously returned operations are applied.
- Conflicting operations are suppressed by the native runner.
- Return an empty array when no change is needed.
- Async work must complete within the extension’s three-second execution budget.