Skip to content

refactor: fetch new treatments on expiration #1262

Merged
yeul merged 3 commits intopaypal:developfrom
perco12:vultures-vacation-vith-viking-velociraptors
Jan 27, 2026
Merged

refactor: fetch new treatments on expiration #1262
yeul merged 3 commits intopaypal:developfrom
perco12:vultures-vacation-vith-viking-velociraptors

Conversation

@perco12
Copy link
Copy Markdown
Contributor

@perco12 perco12 commented Jan 22, 2026

Description

Prevent use of stale treatment data

Updated treatment handling to return null for expired treatments instead of returning stale data. This ensures fresh
treatment data is fetched when the cached treatment has expired.

Screenshots

Testing instructions

Ensure experiments.test.js pass with this new change
stageTag: op_treatment_01
verify that messages still render as expected and in FPTI verify that the one deviceID has the same buyer_config_hash even after expiration and refetch (expiration at 15 minutes)
Screenshot 2026-01-23 at 1 13 36 PM

@perco12 perco12 changed the title Only fetch new treatments on expiration instead of utilizing stale treatment refactor: fetch new treatments on expiration Jan 22, 2026
@yeul yeul merged commit ff6ddbf into paypal:develop Jan 27, 2026
66 checks passed
github-actions Bot pushed a commit that referenced this pull request Jan 27, 2026
### [1.76.1](v1.76.0...v1.76.1) (2026-01-27)

### Bug Fixes

* header component scss ([#1265](#1265)) ([61ea1b3](61ea1b3))

### Code Refactoring

* fetch new treatments on expiration ([#1262](#1262)) ([ff6ddbf](ff6ddbf))
* migrate deprecated Sass [@import](https://github.com/import) to [@use](https://github.com/use) statements ([#1254](#1254)) ([89adcf5](89adcf5))
* remove core-js-pure dependency ([#1253](#1253)) ([181a8b7](181a8b7))
* UK Pi3 Preapproval ModXO changes ([#1259](#1259)) ([95ed87c](95ed87c))
@github-actions
Copy link
Copy Markdown

🎉 This PR is included in version 1.76.1 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants