Revert: Fixed indicator state updates after configuration with same blocks

commit_hash:b079714e09f542aa203d802a3ac76442b2e2d683
This commit is contained in:
burstein
2025-04-17 16:49:07 +03:00
parent 0d5ef12abe
commit cb495c9ab6
2 changed files with 3 additions and 5 deletions
@@ -93,7 +93,7 @@ extension DivIndicator: DivBlockModeling {
return PageControlBlock(
layoutDirection: context.layoutDirection,
pageControlPath: context.path,
pageControlPath: context.parentPath,
pagerPath: pagerPath,
widthTrait: resolveContentWidthTrait(context),
heightTrait: resolveContentHeightTrait(context),
@@ -77,15 +77,13 @@ private final class PagerView: BlockView {
self.model = model
self.selectedActions = selectedActions
onMainThreadAsync { [isNewModel] in
if isNewModel {
if isNewModel {
onMainThreadAsync {
self.setState(
path: model.path,
state: state.synchronized(with: model),
selectedActions: selectedActions
)
} else {
observer?.elementStateChanged(state, forPath: model.path)
}
}
}