diff --git a/CHANGELOG.md b/CHANGELOG.md index 49cd423e2..05a9fb3c9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ - [#587](https://github.com/bumble-tech/appyx/pull/587) – Fix `DraggableChildren` and rename it to `AppyxComponent` - [#588](https://github.com/bumble-tech/appyx/pull/588) – Set bounds on all new motion controllers - [#589](https://github.com/bumble-tech/appyx/pull/589) – Fix visibility resolution for elements that do not match parent's size +- [#591](https://github.com/bumble-tech/appyx/pull/591) – Flush output cache when onCreate is called in NodeConnector ## 2.0.0-alpha04 diff --git a/utils/interop-rx2/src/main/kotlin/com/bumble/appyx/utils/interop/rx2/connectable/NodeConnector.kt b/utils/interop-rx2/src/main/kotlin/com/bumble/appyx/utils/interop/rx2/connectable/NodeConnector.kt index 999759f43..a3bf108f2 100644 --- a/utils/interop-rx2/src/main/kotlin/com/bumble/appyx/utils/interop/rx2/connectable/NodeConnector.kt +++ b/utils/interop-rx2/src/main/kotlin/com/bumble/appyx/utils/interop/rx2/connectable/NodeConnector.kt @@ -2,7 +2,6 @@ package com.bumble.appyx.utils.interop.rx2.connectable import android.annotation.SuppressLint import com.bumble.appyx.navigation.lifecycle.Lifecycle -import com.bumble.appyx.navigation.lifecycle.subscribe import com.jakewharton.rxrelay2.PublishRelay import com.jakewharton.rxrelay2.Relay import io.reactivex.Observer @@ -32,7 +31,7 @@ class NodeConnector( } override fun onCreate(lifecycle: Lifecycle) { - lifecycle.subscribe(onCreate = { flushOutputCache() }) + flushOutputCache() } private val cacheSubscription = intake.subscribe { diff --git a/utils/interop-rx3/src/main/kotlin/com/bumble/appyx/utils/interop/rx3/connectable/NodeConnector.kt b/utils/interop-rx3/src/main/kotlin/com/bumble/appyx/utils/interop/rx3/connectable/NodeConnector.kt index 7a1ddd746..485909641 100644 --- a/utils/interop-rx3/src/main/kotlin/com/bumble/appyx/utils/interop/rx3/connectable/NodeConnector.kt +++ b/utils/interop-rx3/src/main/kotlin/com/bumble/appyx/utils/interop/rx3/connectable/NodeConnector.kt @@ -2,7 +2,6 @@ package com.bumble.appyx.utils.interop.rx3.connectable import android.annotation.SuppressLint import com.bumble.appyx.navigation.lifecycle.Lifecycle -import com.bumble.appyx.navigation.lifecycle.subscribe import com.jakewharton.rxrelay3.PublishRelay import com.jakewharton.rxrelay3.Relay import io.reactivex.rxjava3.core.Observer @@ -31,7 +30,7 @@ class NodeConnector( } override fun onCreate(lifecycle: Lifecycle) { - lifecycle.subscribe(onCreate = { flushOutputCache() }) + flushOutputCache() } private val cacheSubscription = intake.subscribe {