# compose

Andrew Rudenko [JB]

03/25/2020, 10:07 AM
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.

Adam Powell

03/25/2020, 1:05 PM
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

Andrew Rudenko [JB]

03/25/2020, 1:29 PM
@Adam Powell thank you!