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

Fix stale transition bug when using dispatchers. #356

Closed Laimiux closed 8 months ago

Laimiux commented 8 months ago

Fixing a bug where DeferredTransition can hold to a stale transition property if a state change happens while event is waiting to be dispatched. Instead, we should rely on the mutable property that lives in ListenerImpl

carrotkite commented 8 months ago

JaCoCo Code Coverage 81.49% :white_check_mark:

Class Covered Meta Status
com/instacart/formula/internal/SnapshotImpl 81% 0% :white_check_mark:
com/instacart/formula/internal/DeferredTransition 100% 0% :white_check_mark:
com/instacart/formula/internal/ListenerImpl 75% 0% :white_check_mark:

Generated by :no_entry_sign: Danger