Using WASM can I download the assemblies files before start the app in a html+js plain page used for login?
My intention is the following: I would like to have inside wwwroot a login page with very basic UI (just two texboxes and a button) with plain html + js + css. As soon as this page is loaded (document.onloadI guess) it starts asynchronously the downloading of the assemblies. When the user click the button to login it commit an ajax call to a API for authentication (json web token returns in response if credentials are valid). If the wasm files are already downloaded, the Blazor WASM appears. If the files are not yet downloaded, it wait until are downloaded and the Blazor WASM appears.
Blazor 8 WebApp – Client Project Fails when adding Project Reference to Class Library
I am using the new Blazor 8 (.net 8.0) WebApp template with Identity Authentication and Server & WebAssembly interactive render modes.
Assertion at /__w/1/s/src/mono/mono/metadata/assembly.c:1673, condition `’ not met
I am getting the following error in console:
Error: [MONO] * Assertion at /__w/1/s/src/mono/mono/metadata/assembly.c:1673, condition `<disabled>' not met
Assertion at /__w/1/s/src/mono/mono/metadata/assembly.c:1673, condition `’ not met
I am getting the following error in console:
Error: [MONO] * Assertion at /__w/1/s/src/mono/mono/metadata/assembly.c:1673, condition `<disabled>' not met
Once time fetch API when render many of the same component
I have a Blazor component that needs to get data via the API, the problem is I call fetch API in OnInitializedAsync function, so every time I render the component the fetch API will call.
Blazor with .NET 8 – Page that was not working has started working for uncertain reason
I have a simple page in my .NET 8 Blazor Client project (see code below).
Blazor with .NET 8 – Page that was not working has started working for uncertain reason
I have a simple page in my .NET 8 Blazor Client project (see code below).
Blazor with .NET 8: Getting error with adding interactive component to Server project
When I create a new Blazor solution using .NET 8, enabling webassembly, I get two projects, Client and Server.
Can I have a NavLink with a relative URL
I have a WebAssembly Blazor app and I want the URLs in my menu to be relative to the current path.
If I navigate to /demo/
and I click on a link with an href of games
, I want it to navigate to /demo/games
but instead, it treats the href as being absolute and navigates to /games
.
Blazor Wasm Open 302 Redirect in New Browser Tab
We have a REST API that is used by our Blazor spa application which exposes a feature to initiate an oAuth handshake against some line of business system for the purpose of obtaining an access token and ultimately accessing data. Some of these third party systems, can at times, have somewhat of a non-standard oAuth implementation and require additional headers or query parameters. As such the API builds the 302 response which we send back to the Blazor client. Forgive my ignore here as I am not a front-end developer but is it possible within Blazor to capture the 302 response and pop this open into a new browser tab? Upon searching for an answer it seems there’s a way to JS Interop to pop a tab and navigate to a URL but this isn’t what I want. I want the API to return a 302, with say 4 additional headers, and pass that response to the new browser tab?