Replies: 1 comment 2 replies
-
In general, if you have a frozen UI in the world of web dev, you need use a background worker. See also: https://github.com/varabyte/kobweb#creating-a-kobweb-worker You can also do Note that the download itself will not the source of the freeze, but probably deserializing it is the problem I would guess. In this case, you should deserialize it in a worker and then send it to the UI thread when ready. Workers are a feature I'm proud that Kobweb supports, but it is a newer feature, so don't hesitate to let me know if you find bugs and/or missing features. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When I'm trying to fetch the big amount of data from server or database,
the UI will be blocked , I didn't have this problem in android development , because I would use Dispatcher.IO which which would receive data in background.
But in kobweb there are just these
Dispatcher.Unconfined
Dispatcher.Main
Dispatcher.Default
here is my function :
Beta Was this translation helpful? Give feedback.
All reactions