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

Cascading Parameter is null with SSR /interactive Server #59109

Open
1 task done
hannespreishuber opened this issue Nov 22, 2024 · 2 comments
Open
1 task done

Cascading Parameter is null with SSR /interactive Server #59109

hannespreishuber opened this issue Nov 22, 2024 · 2 comments
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved

Comments

@hannespreishuber
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Seems to be a 9 issue

<CascadingValue Name="Hannes" Value="11"> <Routes /> </CascadingValue>

Set home.razor to

@rendermode InteractiveServer

[CascadingParameter (Name="Hannes")] public int hannes { get; set; }

Parameter @hannes is 0

Expected Behavior

should be 11

Steps To Reproduce

https://github.com/hannespreishuber/cascadingtestcase

Exceptions (if any)

No response

.NET Version

9

Anything else?

No response

@dotnet-issue-labeler dotnet-issue-labeler bot added the area-blazor Includes: Blazor, Razor Components label Nov 22, 2024
@hannes
Copy link

hannes commented Nov 22, 2024

Hey :)

@javiercn
Copy link
Member

@hannespreishuber thanks for contacting us.

This is by design. Your cascading parameter value is crossing render boundaries, which is not supported.
https://github.com/hannespreishuber/CascadingTestCase/blob/master/CascadingTestCase/Components/Pages/Home.razor#L2

See #51969

@javiercn javiercn added question ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-blazor Includes: Blazor, Razor Components ✔️ Resolution: Answered Resolved because the question asked by the original author has been answered. question Status: Resolved
Projects
None yet
Development

No branches or pull requests

3 participants