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
Hello,
I've stuck with this problem quite a while ago.
I've trying to load data from REST API when the application is start.
With the example provided in the documentation, works on every platform deployment (Win, Linux, IOS, OSX, Android) but not on browser. (Example: https://docs.avaloniaui.net/docs/0.10.x/tutorials/music-store-app/load-data-at-startup)
When I run this in the browser, the following error happens:
If I not use the RxApp.MainThreadScheduler.Schedule(LoadInitialData); call, but directly call up the LoadInitialData().Wait() function in the ctor (<- I know this is not the proper way, any suggestion welcomed ) The application behave the same way.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I've stuck with this problem quite a while ago.
I've trying to load data from REST API when the application is start.
With the example provided in the documentation, works on every platform deployment (Win, Linux, IOS, OSX, Android) but not on browser. (Example: https://docs.avaloniaui.net/docs/0.10.x/tutorials/music-store-app/load-data-at-startup)
When I run this in the browser, the following error happens:
If I not use the
RxApp.MainThreadScheduler.Schedule(LoadInitialData);
call, but directly call up theLoadInitialData().Wait()
function in the ctor (<- I know this is not the proper way, any suggestion welcomed ) The application behave the same way.Thanks for any suggestion how to sole this issue.
Beta Was this translation helpful? Give feedback.
All reactions