You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/components/tabs/TabsComponentView.kt
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -81,17 +81,18 @@ internal fun TabsComponentView(
81
81
style = style,
82
82
paywallState = state,
83
83
)
84
-
if (!tabsState.visible) return
85
-
86
84
// State-driven paywalls: publish the selected tab id into the state store so components that react to it via a
87
-
// `state_condition` override recompose. Runs on first composition (seed) and whenever the selection changes.
85
+
// `state_condition` override recompose. Done before the visibility check so a hidden Tabs still publishes its
86
+
// selected state. Runs on first composition (seed) and whenever the selection changes.
88
87
val selectedTabId = style.tabs[state.selectedTabIndex.coerceIn(0..style.tabs.lastIndex)].id
0 commit comments