dioxus icon indicating copy to clipboard operation
dioxus copied to clipboard

bug: LaunchBuilder contexts not used on mobile

Open tdomhan opened this issue 2 months ago • 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.

tdomhan avatar Dec 13 '24 21:12 tdomhan