Hey. Is there some place with a description of Fra...
# compose
a
Hey. Is there some place with a description of Frame and Model concepts? What is the supposed way to modify Model? As I understand compose callbacks like onClick are executed in scope of Frame, but how to manage such scopes outside of such callbacks (from IO events, for example). Thank you.
a
For now if you post your model changes to the main thread it'll be handled for you. In the future there will be some sort of thread-agnostic scoped transaction API, something like
frameTransaction { ... }
as well as the ability to make one-off changes that will be coalesced for the next recomposition for you if you don't care if the results might be split across frames.
👍🏻 1
a
@Adam Powell thank you!