You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
WebAssemblyRuntime.InvokeJS get value from callback? #65
Activity
carldebilly commentedon Jun 24, 2018
You need to call back your code from js/ts. We're already doing that for the wasm http handler if you want an example.
https://github.com/nventive/Uno/blob/master/src/Uno.UI.Wasm/ts/HttpClient.ts
Ali-YousefiTelori commentedon Jun 26, 2018
Thank you, I don't know ts, but i make this example:
C#
and js:
this always show me result "result: [object Promise]" not real data.
jeromelaban commentedon Jun 26, 2018
Async functions are not supported by InvokeJS, which is synchronous. You need to call a C# method manually at the end like this.
carldebilly commentedon May 19, 2020
@Ali-YousefiTelori @MatFillion
This feature has been merged into
masterand available as version3.0.0-dev.25on nuget.Merge pull request unoplatform#65 from unoplatform/pj/splash-skia
chore: MOAR LOGGING
chore: MOAR LOGGING