question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CascadingParameter availability

See original GitHub issue

Hello, While looking at your samples, I could find a lot of useful information. However, I couldn’t find anything about CascadingParameter usage.

I tried to pass a string parameter and it is always null. in view model:

[CascadingParameter]
 public string SomeValue { get; set; }

and in a parent component <CascadingValue Value="AStringProperty">...</CascadingValue>

Also, I’m using <CascadingAuthenticationState> in App.Razor which should be available as a cascading a param, as well.

[CascadingParameter]
 public Task<AuthenticationState> AuthenticationStateTask { get; set; }

It is also null in the view model

Could you please advise?

Thank you in advance

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
klemmchrcommented, Jun 4, 2022

This will be available with the next update.

1reaction
dugsteencommented, Mar 8, 2022

Since I first posted, I’ve gotten busier and can’t help directly right now. However, I do know the issue, so if you need someone to check (e.g. with the Telerik controls), I could do that. Good luck!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Cascading Values & Cascading Parameters
The descendant components can then choose to collect the value by declaring a property of the same type, decorated with the [CascadingParameter] ...
Read more >
ASP.NET Core Blazor cascading values and parameters
In this article. CascadingValue component; [CascadingParameter] attribute; Cascade multiple values; Pass data across a component hierarchy.
Read more >
Cascading Values And Parameters In Razor Components
Descendant components opt in to cascaded values by declaring a property decorated with the [CascadingParameter] attribute.
Read more >
Understand Cascading Parameters and Cascading Values in ...
As you can see the Value property is now decorated with [CascadingParameter] attribute. To set the Value cascading parameter from the Index.
Read more >
Blazor - Cascade username to all components
I'm struggling to get the windows username available to all components and accessible from within the @code section though.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found