Skip to content
Discussion options

You must be logged in to vote

Context does work between islands, not sure what you mean. I just added it to your demo and it's fine.

#[component]
fn HomePage() -> impl IntoView {
    view! {
        <h1 class="p-6">"Homepage"</h1>
        <div class="p-6">
            <a href="/other" class="p-6">go to other page</a>
            <ProvideSignal>
                <ServerThing>
                    <ChangeValueOne />
                    <ChangeValueTwo />
                    <Sum />
                </ServerThing>
            </ProvideSignal>
        </div>
    }
}

#[island]
fn ProvideSignal(children: Children) -> impl IntoView {
    provide_context(42i32);
    children()
}

#[component]
fn ServerThing(children: Children) -> 

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@gbj
Comment options

gbj Mar 26, 2026
Maintainer

@CodingFlow
Comment options

@gbj
Comment options

gbj Mar 26, 2026
Maintainer

Answer selected by CodingFlow
@CodingFlow
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants