What are cascading values and parameters? How do you use them? How do you pass data from a fifth- or sixth-level child component to a root parent component in Blazor?
Cascading values and parameters are used to pass a value from a component to all its descendants without having to use traditional component parameters. Blazor comes with a special component called CascadingValue. This component allows whatever value is passed to it to be cascaded down its component tree to all of its descendants. The descendant components can then choose to collect the value by declaring a property of the same type, decorated with the [CascadingParameter] attribute. Parent component Child component Reference link:https://chrissainty.com/understanding-cascading-values-and-cascading-parameters/
What is the server-side Blazor application template?
The “Blazor (server-side)” template is now called “Blazor Server App.” Use blazorserver to create a Blazor server app from the command line.
How do you debug in a client-side Blazor application?
To debug a client-side Blazor app in a browser: Close the all instances in Chrome. Run the Blazor app in Chrome (version 70 or later). Open Win + R and run following command. “%programfiles(x86)%\Google\Chrome\Application\chrome.exe” –remote-debugging-port=9222 http://localhost:52902/ Now the Blazor app is running. Then hit Shift+Alt+D on Windows or Linux and Shift+Cmd+D on macOS. Reference link: https://docs.microsoft.com/en-us/aspnet/core/blazor/debug?view=aspnetcore-3.1 https://www.hanselman.com/blog/CompilingCToWASMWithMonoAndBlazorThenDebuggingNETSourceWithRemoteDebuggingInChromeDevTools.aspx
‘ChildContent’: member names cannot be the same as their enclosing type. What does this mean?
The parameter name and component (file) name should not be the same. They must be unique. For example, in the below code snippet the component name is ChildComponent so we cannot have a parameter with the same name it will not compile
How do you increase server timeout to prevent elapsing without receiving a message from the server?
Scenario: Invoke JS method call from .NET. Here is how to increase JavaScript client timeout.