Comments (5)
Hi @nflahavan! Thank you for the detailed issue β the unit test is very helpful. Definitely a reference cycle here would be a bug. I would be happy to review a PR, thank you again.
from action.
#228 is available for your review whenever you get a chance!
from action.
Hey @ashfurrow @nflahavan the issue is still not fixed. I'm using the Action version from the master, and still I can detect memory leaks
This simple code generates memory leak
let forgotPasswordAction = CocoaAction {
return .create { [weak self] (observer) -> Disposable in
guard let self = self else { return Disposables.create() }
self.delegate?.didTapForgotPasswordButton()
observer.onCompleted()
return Disposables.create()
}
}
forgotPasswordButton.rx.action = forgotPasswordAction
from action.
#235 It's very similar but for button.rx.action case
from action.
Hi, thanks for following up and opening #235. I honestly don't use Action or RxSwift day-to-day anymore, so I don't have a lot of time to devote to fixing bugs like this. I'd be happy to review a pull request, though.
I also just noticed that #228 was merged but hasn't been released yet β let's wait until this further retain cycle is fixed and then release a version 4.3.1 π
from action.
Related Issues (20)
- Use of undeclared type 'InputSubject' HOT 1
- Potential Memory Leak HOT 2
- Version 4.0.1 could not be found HOT 1
- Memory leak caused by `bind(to:inputTransform:)` HOT 1
- Problem installing with CocoaPods
- Support RxSwift 5.1.0 HOT 1
- Action.elements does not emit item for a inflight request HOT 1
- Crash when using Carthage-cache and Rx v5.1.1 HOT 3
- Pod version not updated HOT 2
- Fix CI HOT 2
- Building for iOS, but the linked framework 'RxCocoa.framework' was built for macOS. (in target 'Action' from project 'Action') HOT 5
- Combine support
- RxSwift v6.0.0 question HOT 1
- Retain Cycle CocoaAction HOT 2
- alertController η»ε AlamofireδΌζ₯ι
- UIRefreshControl being displayed before view appears
- Ambiguous use of 'init(enabledIf:workFactory:)'
- auto-release Action in function scope
- v4.2.0 throw error when building code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action.