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
While the server version works well, using the debugger it looks like the wasm client goes off and never comes back when hitting the ObserveOn, while removing the ObserveOn makes the wasm client work properly.
I read this discussion from 2 years ago ([BUG] RxApp.MainThreadScheduler wrong thread on Server-Side Blazor #2344) and my understanding is this problem is caused by the single threaded environment in wasm and that when a multi-threaded wasm is released, ObserveOn will work as expected in a wasm head. If this is true, I prefer to wait for that update rather than putting in platform specific code now.
Please verify if my understanding of this is correct.
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
-
I have a new Blazor project which targets Blazor Server and, using almost all of the same code I have a wasm client.
My common ViewModels use DynamicData to load their data in a background thread and surface them to the UI
While the server version works well, using the debugger it looks like the wasm client goes off and never comes back when hitting the ObserveOn, while removing the ObserveOn makes the wasm client work properly.
I read this discussion from 2 years ago ([BUG] RxApp.MainThreadScheduler wrong thread on Server-Side Blazor #2344) and my understanding is this problem is caused by the single threaded environment in wasm and that when a multi-threaded wasm is released, ObserveOn will work as expected in a wasm head. If this is true, I prefer to wait for that update rather than putting in platform specific code now.
Please verify if my understanding of this is correct.
Beta Was this translation helpful? Give feedback.
All reactions