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

Disable "Reload on Update" for teacher tool iframes #5875

Merged
merged 1 commit into from
Aug 29, 2024

Conversation

thsparks
Copy link
Contributor

Per microsoft/pxt#10120, this adds the noReloadOnUpdate flag to our teachertool query variant, which gets added to the url passed into the iframe on the teacher tool.

When this is set, the webapp won't automatically reload when the service worker updates, which was causing unloaded projects (#5824) and a breakdown in communication between the teacher tool and the webapp (#5822).

We'll have to manually handle the reload in the teacher tool, but that will be a separate change in pxt.

…wn in communication between the teacher tool and the webapp in the iframe. We can handle this ourselves instead.
@thsparks thsparks requested review from riknoll and a team August 28, 2024 23:20
@thsparks thsparks merged commit 97adc00 into master Aug 29, 2024
7 checks passed
@thsparks thsparks deleted the thsparks/teachertool/disable_reload_on_update branch August 29, 2024 00:07
thsparks added a commit to microsoft/pxt that referenced this pull request Aug 29, 2024
With microsoft/pxt-microbit#5875, we disabled the automatic webapp reload that occurs when a new service worker is registered. We did that because the unexpected reload was causing microsoft/pxt-microbit#5824 and microsoft/pxt-microbit#5822.

Now, however, we have to handle that refresh ourselves. In this change, we listen for the event added in #10120 and refresh the iframe (via changing the src) when we get it.
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.

3 participants