Blazor WebAssembly Standalone #999
Replies: 2 comments
-
|
Sure, only question is if that makes sense (that depends how much you want to add - read below - and how much native capabilities you need). In WASM you are in the renderer process of Electron, i.e., inside the browser. Therefore, you will not have access to the Electron bridge. Therefore, this setup makes only sense if you
Of course, since you are anyway in the renderer process you could also use the IPC bridge inside Electron and communicate from the browser to the Electron shell directly. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the quick reply. So it would make little sense to use ElectronNET.Core with standalone Blazor WASM, since if I wanted to access the Electron APIs directly, I could just use plain Electron with Node.js and host the WASM project statically (to not spawn a Serve, just for file access etc.). That's my understanding, at least. I should probably stick with the ASP.NET Core hosted model to fully leverage ElectronNET.Core's features (like file access, etc.). In my short testing, it worked fine with a server-side Blazor Web App after some tinkering with the standard ASP.NET-hosted WASM template, though the Counter component didn't update when clicked (the Weather forecast page worked fine, which was odd). I haven't touched Blazor in a while, so I definitely need to relearn a few things. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to host Blazor WebAssembly with ElectronNet.Core? Only saw the ASP.NET hosted example on here.
Beta Was this translation helpful? Give feedback.
All reactions