Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core][updates] fix Updates.reloadAsync not working on ios #28256

Merged
merged 3 commits into from
Apr 17, 2024

Conversation

Kudo
Copy link
Contributor

@Kudo Kudo commented Apr 17, 2024

Why

Updates.reloadAsync() does not use the latest bundleURL on ios. it's a regression from #27601
close ENG-11975

How

before #27601, the RCTBridgeDelegate.sourceURLForBridge: is inside expo-updates. it's no longer the case since #27601 and we were using the cached bundleURL inside RCTRootViewFactory. that's why reload still using the previous bundleURL.

this pr tries to introduce a new bundleURL handler to react delegate handlers to override. then expo-updates could serve the newer bundleURL.

Test Plan

test https://github.com/expo/UpdatesAPIDemo/tree/canary.

Checklist

Copy link

linear bot commented Apr 17, 2024

@expo-bot expo-bot added the bot: suggestions ExpoBot has some suggestions label Apr 17, 2024
@expo-bot expo-bot added bot: passed checks ExpoBot has nothing to complain about and removed bot: suggestions ExpoBot has some suggestions labels Apr 17, 2024
@Kudo Kudo marked this pull request as ready for review April 17, 2024 15:45
@Kudo Kudo merged commit 3e1af46 into main Apr 17, 2024
3 checks passed
@Kudo Kudo deleted the @kudo/fix-update-reload branch April 17, 2024 18:56
@brentvatne brentvatne added the published Changes from the PR have been published to npm label Apr 18, 2024
@Kudo Kudo mentioned this pull request Apr 23, 2024
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot: fingerprint compatible bot: passed checks ExpoBot has nothing to complain about published Changes from the PR have been published to npm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants