Skip to content

Remove editor-not-ready reload on app resume#920

Merged
microbit-grace merged 1 commit into
mainfrom
remove-resume-reload-apps
Jun 24, 2026
Merged

Remove editor-not-ready reload on app resume#920
microbit-grace merged 1 commit into
mainfrom
remove-resume-reload-apps

Conversation

@microbit-grace

Copy link
Copy Markdown

The resume handler reloaded the app when the editor wasn't ready. It was a recovery for a MakeCode editor loading issue (#765) that has since been fixed (via #888), so it's no longer needed (tested on iPad to ensure it is not needed).

The resume handler also occasionally broke deep links: on a warm-start deep link, appUrlOpen navigates to the target route and "resume" fires right after. If MakeCode is not ready, the resume causes a reload, which races the navigation and resets the app to the home page. This issue can be reproduced by opening the app, quickly pressing a project idea card to open it in the browser, and then quickly pressing "Open in CreateAI" to return to the app. Removing the resume handler fixes the issue where the app opens, but doesn't navigate to the /import page.

- The resume handler reloaded the app when the editor wasn't ready.
It was recovery for an editor loading issue that has since been fixed,
so it's no longer needed.

- It also broke deep links: on a warm-start deep link, appUrlOpen
navigates to the target route and resume fires right after, so the
reload raced the navigation and reset the app to the home page.
Removing it fixes the intermittent "opens the app but doesn't navigate"
behaviour.
@github-actions

Copy link
Copy Markdown

@microbit-matt-hillsdon

Copy link
Copy Markdown

Ah, OK so we think #888 is the whole story and there's no "putting the app into the background prevents MakeCode from loading" problem? Maybe just made it more likely to hit the sim timing issue?

@microbit-grace

microbit-grace commented Jun 24, 2026

Copy link
Copy Markdown
Author

Ah, OK so we think #888 is the whole story and there's no "putting the app into the background prevents MakeCode from loading" problem?

Yes, couldn't repro the issue of the editor not loading and the XCode logcat seems to show the workspace getting loaded even when the app is in the background.

Maybe just made it more likely to hit the sim timing issue?

Yes, I think it is this.

@microbit-grace microbit-grace merged commit 57729ff into main Jun 24, 2026
4 checks passed
@microbit-grace microbit-grace deleted the remove-resume-reload-apps branch June 24, 2026 12:09
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