Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

Blazor and passing @ref to component

$
0
0

enter image description herei have a issue with component, when i assign @ref="longList Component" in an error appear, otherwise without @ref all work fine. I get an error but in this case i do not know what does mean. Help 😕 I lost last night and half of sunday 😕I am a beginner, so maybe i forgot about something.

<LogList @ref="logListComponent"/>    <!-- error --><LogList />    <!-- ok -->
    protected override async Task OnInitializedAsync()    {        logListComponent = new LogList();    }
Severity    Code    Description Project File    Line    Suppression StateError (active)  CS0426  The type name 'Client' does not exist in the type 'MqttClient'  MqttClient.Client   C:\Users\Konrad\Desktop\MQ\MqttClient\MqttClient\Client\obj\Debug\net7.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages_MqttClient_razor.g.cs    131 

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>