DioxusLabs/dioxus

bug: LaunchBuilder contexts not used on mobile

Opened this issue · 0 comments

Problem

Currently the contexts that are passed to LaunchBuilder::new().with_context_provider do not gets used in the mobile launcher. See here
https://github.com/DioxusLabs/dioxus/blob/main/packages/mobile/src/lib.rs#L15
where the contexts that are passed are not forwarded to the desktop launcher that is called for ios and also not used for the Android launcher.

Steps To Reproduce

        LaunchBuilder::new()
            .with_context_provider(|| Box::new(AppState::new()))
            .launch(App);

Expected behavior
LaunchBuilder contexts to be available in Elements on mobile.