-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eliminate Source#on{Add,Remove}(map) #3350
Comments
It's not always possible directly — e.g. |
In that case, |
Thank you for opening! This will go hand-in-hand with #3186. |
The main use of
on{Add,Remove}(map)
in source subclasses is to store a reference to the map for later use. This introduces both statefulness (certain source operations work only afteronAdd
has been called) and tight coupling between a source and the map.Instead, sources should be passed the things to which they need access as parameters to the relevant methods.
Ref #3255 (comment)
The text was updated successfully, but these errors were encountered: