-
-
Notifications
You must be signed in to change notification settings - Fork 512
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
Moved super.dispose down #803
Moved super.dispose down #803
Conversation
Hello! Could you write tests for these changes? |
I'm having trouble writing a good test, I can't seem to recreate the same issue as we have in our plugin. I did add a test that validates the delegate isn't disposed before the listeners have been removed though 🤔 |
@ikbendewilliam Did these changes fix the issue with your plugin? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, but make sure it works on your app first. It'd be a shame if it didn't
@rrousselGit Turns out I'm sick, so when I'm feeling better I'll have another go at writing better tests and I'll confirm that everything is fixed for our plugin. Thank you for your patience |
No problem! Thanks for your work :) |
I have good news and bad news 😅 My opinion, however, is still that the order should be first remove listeners and then super.dispose. So for me this can be merged, WDYT? |
Honestly I'm a bit skeptical. And the current behavior isn't problematic. You're the first to point it out, I never saw/heard of the issue before. |
Hello again! I don't think I will go through with these changes after-all. In the end:
So I'll keep things as they are for now. I appreciate your effort though! |
We are in the same situation. It would be very beneficial for us if this would be merged so we don't have to fork 👍 |
Fixes #802