We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95c3be1 commit 9a62bc2Copy full SHA for 9a62bc2
mini-common/src/main/java/mini/Store.kt
@@ -30,10 +30,7 @@ abstract class Store<S : Any> {
30
/** Hook for write only property */
31
protected var newState: S
32
get() = throw UnsupportedOperationException("This is a write only property")
33
- set(value) {
34
- assertOnUiThread()
35
- setStateInternal(value)
36
- }
+ set(value) = setState(value)
37
38
/** Same as property, suffix style */
39
protected fun S.asNewState(): S {
0 commit comments