Repository navigation
fix(reactive): enable MVUX hot reload on Android - #3235
Merged
Merged
Conversation
- `Assembly.GetEntryAssembly()` is null on Android (MonoVM and CoreCLR), so no module matched and MVUX hot reload stayed disabled: model edits were applied to the runtime but never hot-patched into the bindables - When there is no entry assembly, take the first module to configure as the app (its module initializer runs before any referenced library code) - Log a warning instead of an info message when a model update arrives while MVUX hot reload is disabled - Fix the misleading "already configured by another module" message Refs unoplatform/uno#25417 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE
This was referenced Oct 14, 2026
Contributor
Author
|
Hold before merging: possible iOS regression. CI on the mobile hot-reload lanes (#3238), combined with this PR in draft #3239:
Since this PR only changes behavior when Suggest not merging until #3240 explains the iOS hang, or narrowing this change to Android until then. |
kazo0
enabled auto-merge
October 15, 2026 15:02
kazo0
added a commit
that referenced
this pull request
Oct 15, 2026
- Lets #3238 merge independently; #3235 re-includes them Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE
Contributor
Author
rajamatt
approved these changes
Oct 15, 2026
|
This pull request does not currently match the merge queue conditions, so it cannot be queued from here. The box comes back if it matches again. |
kazo0
added a commit
that referenced
this pull request
Oct 15, 2026
… merged Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE
kazo0
added a commit
that referenced
this pull request
Oct 15, 2026
- Root cause of the 5 iOS failures (#3240): on iOS/Mono, Assembly.GetEntryAssembly() is null until Main starts, so ModuleFeedConfiguration captured null inside the app's module initializer and MVUX hot reload stayed disabled - #3235's first-caller rule already handles it (the app's module initializer runs before Main, ahead of every library); document iOS next to Android in ModuleFeedConfiguration, its test and PlatformHelper - Remove the five #3240 exclusions from IosTestFilters (41/41 locally on an iOS 18.5 simulator) - Call App.InitializeLogging() from the iOS and Android RuntimeTests heads, with Uno.Extensions.Reactive at Information, so mobile CI failures leave logs - Add specs/016-ios-mvux-hr-entry-assembly/progress.md with the evidence Refs #3240 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VZVenoDKLuwSmGT7wKNGSV
3 of 6 tasks
kazo0
added a commit
that referenced
this pull request
Oct 15, 2026
- Root cause of the 5 iOS failures (#3240): on iOS/Mono, Assembly.GetEntryAssembly() is null until Main starts, so ModuleFeedConfiguration captured null inside the app's module initializer and MVUX hot reload stayed disabled - #3235's first-caller rule already handles it (the app's module initializer runs before Main, ahead of every library); document iOS next to Android in ModuleFeedConfiguration, its test and PlatformHelper - Remove the five #3240 exclusions from IosTestFilters (41/41 locally on an iOS 18.5 simulator) - Call App.InitializeLogging() from the iOS and Android RuntimeTests heads, with Uno.Extensions.Reactive at Information, so mobile CI failures leave logs - Add specs/016-ios-mvux-hr-entry-assembly/progress.md with the evidence Refs #3240 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VZVenoDKLuwSmGT7wKNGSV
kazo0
added a commit
that referenced
this pull request
Oct 15, 2026
- Root cause of the 5 iOS failures (#3240): on iOS/Mono, Assembly.GetEntryAssembly() is null until Main starts, so ModuleFeedConfiguration captured null inside the app's module initializer and MVUX hot reload stayed disabled - #3235's first-caller rule already handles it (the app's module initializer runs before Main, ahead of every library); document iOS next to Android in ModuleFeedConfiguration, its test and PlatformHelper - Remove the five #3240 exclusions from IosTestFilters (41/41 locally on an iOS 18.5 simulator) - Call App.InitializeLogging() from the iOS and Android RuntimeTests heads, with Uno.Extensions.Reactive at Information, so mobile CI failures leave logs - Add specs/016-ios-mvux-hr-entry-assembly/progress.md with the evidence Refs #3240 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01VZVenoDKLuwSmGT7wKNGSV
agneszitte
added a commit
that referenced
this pull request
Nov 3, 2026
- Backport of #3235 to servicing/7.4, applied without changes Co-Authored-By: Claude Opus 5.5 <[email protected]>
5 of 7 tasks
ehtick
pushed a commit
to ehtick/uno.extensions
that referenced
this pull request
Nov 6, 2026
- Tag the diagnostics code block as text (MD040) - Reword the line starting with "unoplatform#3235's" so it isn't parsed as a heading (MD018) - Both fail the Markdown Validation stage for every PR built against main Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DfEL4A7BqL6zLvko22CdCA
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GitHub Issue (If applicable): related to unoplatform/uno#25417 (not auto-closing: the fix is validated on an emulator, but not against the reporter's app)
PR Type
What is the current behavior?
On Android, C# edits to an MVUX model are reported as applied by Hot Reload but have no effect; the app keeps running the old code (unoplatform/uno#25417).
ModuleFeedConfiguration.ConfigureHotReloadonly applies the generated module initializer's setting when the module matchesAssembly.GetEntryAssembly(). On Android (MonoVM and CoreCLR) that returnsnull(also documented inPlatformHelper.GetAppAssembly), so no module ever matches andFeedConfiguration.EffectiveHotReloadstaysDisabled. The delta does reach the runtime (theMainModel#1shadow type shows up in the navigation warning), butBindableViewModelBase.HotPatchexits early and only logs at Info level, so nothing is swapped and nothing visible is logged.On desktop the count resetting to 0 after an edit is the MVUX model swap (fresh
Countstate on the newMainModel#1instance), not a page recreation.What is the new behavior?
ConfigureHotReloadis taken as the app (claimed atomically). The app's module initializer runs before any code of the libraries it references.PR Checklist
Uno.Extensions.Reactive.Testsin Release, 1490 passed / 19 skipped (pre-existing); Reactive builds warning-freeGiven_ModuleFeedConfiguration(When_EntryAssemblyKnown_Then_OnlyMatchingModuleIsApp,When_NoEntryAssembly_Then_FirstModuleIsApp). The second fails against the previous logic and passes with the fix.IsAppModulehelper is internalOther information
Reactive…Given_HotReloadis 9/14 on main (the 5 MVUX model-update tests fail) and 14/14 with this fix. The reporter's exact app wasn't re-run; expected result for its repro: after editingc + 1toc + 10, the count resets to 0, then the next click adds 10 (same as desktop).!_HotReload, and the HR test classes use[RunsInSecondaryApp(ignoreIfNotSupported: true)], which skips them on mobile. Mobile hot-reload lanes: ci: run hot-reload runtime tests on Android and iOS #3238 (closes Run the hot-reload runtime tests on Android and iOS in CI #3236).🤖 Generated with Claude Code
https://claude.ai/code/session_01RANiUytmxJBFCkZycSG3TE