Hello, I have a similar problem where we have two distinct parts of the application with different dependencies and initialization modules.
It is a Webapp project using Interactive WebAssembly render mode, and we cannot use another mode due to incompatibility with our component suite.
Our issue is not related to downloading WASM files but rather to the startup process of the application and the initialization of modules. Additionally, once initialized, if the user is not authenticated and gets redirected to Azure B2C, when they return to the Blazor application, it has to initialize again, causing significant delays.
We considered a similar approach: having two App.razor
components—one for authenticated users that initializes all modules and another for users without permissions that only initializes the login-related components.
If this is not possible, would it be feasible for the Webapp project (Blazor
and Blazor.Client
) to reference another Blazor project (Blazor.Client2
) without all the dependencies included in the main one?
Best regards, and thanks.