mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
Fixed divcomponents reset in playground
commit_hash:4847d019beb8a904968b0eee7e4f3bd5b49d66fb
This commit is contained in:
@@ -82,5 +82,3 @@ open class DivViewController: UIViewController {
|
||||
divView.accessibilityIdentifier = identifier
|
||||
}
|
||||
}
|
||||
|
||||
private let cardId: DivCardID = "DivViewCard"
|
||||
|
||||
@@ -30,5 +30,10 @@ final class DivViewProvider {
|
||||
.onAppear { [weak self] in
|
||||
self?.jsonProvider.load(url: url)
|
||||
}
|
||||
.onDisappear { [weak self] in
|
||||
self?.divKitComponents.reset(cardId: cardId)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
let cardId: DivCardID = "DivViewCard"
|
||||
|
||||
Reference in New Issue
Block a user