Skip to content

Refresh repeated Swift preloads - #658

Open
markmur wants to merge 2 commits into
mainfrom
swift-refresh-repeated-preload
Open

Refresh repeated Swift preloads#658
markmur wants to merge 2 commits into
mainfrom
swift-refresh-repeated-preload

Conversation

@markmur

@markmur markmur commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

What changes are you making?

Make every explicit Swift preload(checkout:) call refresh the cached checkout, even when the checkout URL is unchanged. This lets merchants re-preload after cart mutations without first calling invalidate() and aligns Swift with Android and React Native behavior.

Repeated background preloads replace the previous cached WebView. Preload calls made while checkout is presented leave the buyer's active session untouched.

This also documents the refresh behavior and adds regression coverage for both cache replacement and active-session protection.


Before you merge

  • I've added tests to support my implementation
  • I've updated the relevant platform README
  • I have read and agree with the Contribution Guidelines
  • I have read and agree with the Code of Conduct

@github-actions github-actions Bot added the #gsd:50662 Rebase Checkout Kit on UCP label Aug 17, 2026

markmur commented Aug 17, 2026

Copy link
Copy Markdown
Contributor Author

@markmur
markmur marked this pull request as ready for review August 17, 2026 11:48
@markmur
markmur requested a review from a team as a code owner August 17, 2026 11:48
@markmur
markmur force-pushed the swift-refresh-repeated-preload branch from 2f71968 to 685cf0b Compare August 17, 2026 11:50
@markmur
markmur force-pushed the rn-sample-preload-observability branch from fdbdb7f to 61d653a Compare August 17, 2026 11:50
@bitrise

bitrise Bot commented Aug 17, 2026

Copy link
Copy Markdown

Install this build

Open Tophat, select your target device, then click Install. Links open on the Mac running Tophat.

SDK Install
Swift Install with Tophat

Checkout Kit E2E results

Status Suite Target Platform OS version tag Device
swift-ios swift ios latest iPhone 15
iOS 27 Beta

@markmur
markmur force-pushed the swift-refresh-repeated-preload branch from 685cf0b to 02806c9 Compare August 17, 2026 13:30
@markmur
markmur force-pushed the rn-sample-preload-observability branch from 61d653a to 260e77b Compare August 17, 2026 13:30
@markmur
markmur force-pushed the swift-refresh-repeated-preload branch from 02806c9 to 2a96ede Compare August 17, 2026 13:34
@markmur
markmur force-pushed the rn-sample-preload-observability branch 2 times, most recently from 68f1602 to e291e83 Compare August 18, 2026 09:34
@markmur
markmur force-pushed the swift-refresh-repeated-preload branch from 2a96ede to d1d8e32 Compare August 18, 2026 09:34
Base automatically changed from rn-sample-preload-observability to main August 18, 2026 12:41
@markmur markmur self-assigned this Aug 18, 2026
@markmur
markmur force-pushed the swift-refresh-repeated-preload branch from d1d8e32 to c96e360 Compare August 18, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

#gsd:50662 Rebase Checkout Kit on UCP

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants