Julius Marozas
07/14/2020, 3:59 PMrxjava2 package the subscribeAsState function calls asState and it uses the onPreCommit hook. Why would the onCommit hook not work there? I don't really understand the use case of onPreCommit.Adam Powell
07/14/2020, 4:49 PMonCommit posts the event to happen "a bit later" rather than as we're actually applying the changes to the composition. The direction we're leaning in is that the current deferred onCommit behavior will go away and only the onPreCommit behavior will remain.Adam Powell
07/14/2020, 4:50 PMonPreCommit is just a minor latency and timing improvement over onCommit.Julius Marozas
07/14/2020, 5:09 PMonCommit)?Adam Powell
07/14/2020, 6:08 PMAdam Powell
07/14/2020, 6:10 PMonPreCommit path is already "deferred" until after all tree changes happen, but it doesn't yield to a system handler/scheduler to do it, which avoids ordering questions and a small amount of latency.Julius Marozas
07/14/2020, 6:36 PM