instacart / formula

A functional reactive framework for managing state and side effects based on RxJava.
https://instacart.github.io/formula/
BSD 3-Clause Clear License
151 stars 14 forks source link

Use main dispatcher for fragment flow store. #367

Closed Laimiux closed 7 months ago

Laimiux commented 7 months ago

What

Adding MainThreadDispatcher to formula-android module and using it within FragmentFlowStore instead of AndroidUpdateScheduler. After https://github.com/instacart/formula/pull/366, global main thread dispatcher performs better than AndroidUpdateScheduler.

carrotkite commented 7 months ago

JaCoCo Code Coverage 84.39% :white_check_mark:

Class Covered Meta Status
com/instacart/formula/android/FragmentFlowStore 100% 0% :white_check_mark:
com/instacart/formula/android/utils/MainThreadDispatcher 100% 0% :white_check_mark:
com/instacart/formula/android/internal/FeatureObservableAction 100% 0% :white_check_mark:

Generated by :no_entry_sign: Danger