refactor: fetch new treatments on expiration #1262
Merged
yeul merged 3 commits intopaypal:developfrom Jan 27, 2026
Merged
Conversation
added 2 commits
January 22, 2026 17:23
…rom localstorage to merchant storage
Braluna-pp
approved these changes
Jan 23, 2026
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))
|
🎉 This PR is included in version 1.76.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_01verify 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)