Skip to content

Feature/5712#130

Open
Vishala230531 wants to merge 9 commits intomainfrom
feature/5712
Open

Feature/5712#130
Vishala230531 wants to merge 9 commits intomainfrom
feature/5712

Conversation

@Vishala230531
Copy link
Copy Markdown

This PR Adds an optional third parameter to belter's watchElementForClose with a bfcacheAware option (default false). When true, the sacrificial iframe's pagehide handler skips calling elementClosed when event.persisted is true, preventing the false positive that triggers unnecessary component re-renders on bfcache restore. When false (default), behavior is identical to current production — no breaking change.

This is consumed by zoid's parent.js which passes { bfcacheAware: bfcacheEnabled } from its component option.

https://paypal.atlassian.net/browse/DTPPCPSDK-5712

Screenshot 2026-03-25 at 9 38 50 AM

@Vishala230531 Vishala230531 requested a review from a team as a code owner March 31, 2026 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants