I asked this on aspnetcore GH but it seems like a quite dead forum so I'm trying my luck here...
We just migrated our .NET 6 code base to .NET 8 and I am familiarizing myself with what we can do in blazor with the new additions from .NET 7 and 8. We are running Blazor WASM Standalone btw.
Earlier we used IJsInProcessRuntime and IJsUnmarshalledRuntime (or whatever it is called). The latter is now deprecated in .NET 7 and we have been blessed with the new [JSImport]/[JSExport] API. My question is, since IJSInProcessRuntime is not deprecated, which one is the better option, JSImport or IJsInProcessRuntime? Performance wise. One thing I have noticed is that I don't think we can call functions on JS classes using JSImport, like we can with IJsInProcessRuntime and a JSObjectReference.
Again, we are on WASM only, so we can use sync only calls as much as possible.
For Unmarshalled calls I have obviously migrated to [JSImport] but what about marshalled ones? Are there any performance benefits in switching form IJsInProcessRuntime to [JSImport]?