-
Is this possible? I doubt it myself a bit as my IDE is giving me an error: Though, according to the docs
Though it is true that Any way in making this work or will I need to keep using IJsInProcessRuntime service? BTW, I run blazor wasm standalone |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Your issue has nothing to do with |
Beta Was this translation helpful? Give feedback.
You can't use
DotNetObjectReference
with the JSImport API. That's the native webassembly specific interop mechanism, not the Blazor one. The moment you opt-in to use[JSImport]
you lock yourself into webassembly only and that interop model.Our recomendation is that unless you need to squeeze out the last drop of performance you stick with the Blazor interop model and only opt-in into the webassembly interop model as a progressive enhancement in the cases where you need it.