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
HI Guys,
I think I need just an enlighten or clarification, what is the reason that makes action2 deallocate and never receive any events from button 2, while action 3 is working fine...
I have double checked the memory and it's confirming the observation.
let action1 = Action<String, String> { input in
print(input)
return .just(input)
}
func textActions() {
let action2 = Action<String, String> { input in
print(input)
return .just(input)
}
let action3 = CocoaAction { _ in
print("Test")
return .empty()
}
button1
.map { _ in "Test 1" }
.bind(to: action1.inputs)
.disposed(by: disposableBag)
button2
.map { _ in "Test 2" }
.bind(to: action2.inputs)
.disposed(by: disposableBag)
button3.rx.action = action3
}
The text was updated successfully, but these errors were encountered:
HI Guys,
I think I need just an enlighten or clarification, what is the reason that makes action2 deallocate and never receive any events from button 2, while action 3 is working fine...
I have double checked the memory and it's confirming the observation.
The text was updated successfully, but these errors were encountered: