Seeing an odd issue in discount functions that leverage the Discount UI. Data from one discount is being cached/memoized into subsequent discounts.
Steps to reproduce:
- Create a discount that leverages the Discount UI
- Open that discount in tab 1 - keep it open.
- Open a new tab and go to create a new discount of the same type
- When clicking ‘Create’, that new discount will be pre-populated with the same values from Discount 1 in tab 1
I can also intermittently get this to happen even when tab 1 is closed down and the only active tab is the one creating the new discount.
Discount UI Extension:
api_version = "2025-04"
Discount Function:
api_version = "2025-04"