You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
JavaScript interop calls cannot be issued at this time. This is because the component is being statically rendererd. When prerendering is enabled, JavaScript interop calls can only be performed during the OnAfterRenderAsync lifecycle method.
In most cases, it can be easily solved when we will move that to another method that is executed later.
The text was updated successfully, but these errors were encountered:
That code can be executed not correctly:
protected override async Task OnInitialized()
{
var window = await jsRuntime.Window();
}
In that case, you will get the error:
JavaScript interop calls cannot be issued at this time. This is because the component is being statically rendererd. When prerendering is enabled, JavaScript interop calls can only be performed during the OnAfterRenderAsync lifecycle method.
In most cases, it can be easily solved when we will move that to another method that is executed later.
The text was updated successfully, but these errors were encountered: