关于[Prerendering your Blazor WASM application with .NET 5 (part 2 - solving the missing HttpClient problem)]的摘要:
In part 1 we saw how to set up your Blazor WASM site for prerendering. This means you can serve your application nice and quickly to your users without making them wait for Blazor WASM to finish loading. However, we were left with a bit of a problem. When you navigate to the /FetchData page and hit refresh you get an error that HttpClient hasn’t been registered.
原文地址: https://jonhilton.net/blazor-wasm-prerendering-missing-http-client/