Witam. Wie ktoś, jak wywołać funkcję JS z C#? Ja robię tak:
await JS.InvokeVoidAsync("showGroupsOnConnected", "XD");
Jednak to daje mi taki błąd w konsoli:
Error: Connection disconnected with error 'Error: Server returned an error on close: Connection closed with an error. InvalidOperationException: JavaScript interop calls cannot be issued during server-side prerendering, because the page has not yet loaded in the browser. Prerendered components must wrap any JavaScript interop calls in conditional logic to ensure those interop calls are not attempted during prerendering.'.
Da się to jakoś naprawić?