Alexander Maryanovsky
11/27/2023, 6:39 AMderivedState
, one to a new value, and another back to the original one, cause the scope reading the value of the state to be recomposed. <more inside the thread>Alexander Maryanovsky
11/27/2023, 6:44 AMComposerImpl.addRecomposeScope
:
scope.requiresRecompose = invalidation != null
marks the scope as requiring recomposition. But invalidation.isInvalid() is false (instances contains only that derived state). Shouldn’t addRecomposeScope
check invalidation.isInvalid()
before marking the scope as requiring recomposition?Ben Trengrove [G]
11/28/2023, 12:28 AMAlexander Maryanovsky
11/28/2023, 5:04 AM