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
unfortunately not, it would be really nice if initializers had deinitializers. Especially for test run related cleanup. My typical approach is to do the cleanup when the app is destroyed
fugly but should do the trick, deinitialize seems mega important. Maybe a post vacation task for myself, unless i can convince señor @dgeb or @twokul ?
Oh man that's not nice. Okay I'll do it when I get back to the office (with
gloves on). I'm gonna put your name on it Stef ;)
On Thu, 3 Dec 2015 at 12:36, Stefan Penner notifications@github.com wrote:
Activity
simonexmachina commentedon Dec 3, 2015
Nothing. Is there an uninitialize hook I can use to remove it?
stefanpenner commentedon Dec 3, 2015
unfortunately not, it would be really nice if initializers had deinitializers. Especially for test run related cleanup. My typical approach is to do the cleanup when the app is destroyed
cc @dgeb
simonexmachina commentedon Dec 3, 2015
Does
appInstancefire adestroyevent or something?stefanpenner commentedon Dec 3, 2015
right now it requires a reopen + willDestroy or destroy override + super to work correctly, which is extremely crappy :sadpanda:
simonexmachina commentedon Dec 3, 2015
Okay, I think this is a NOOP. Registering a global is inherently dirty anyway, it's only supported for convenience during development.
stefanpenner commentedon Dec 3, 2015
This leaks an app during tests, which means it masks other leaks when hunting for leaks.
I believe the reopen is crappy, but fine until we support something better.
simonexmachina commentedon Dec 3, 2015
I see. Okay, how can I do the reopen?
stefanpenner commentedon Dec 3, 2015
in the same file as the initializer:
fugly but should do the trick,
deinitializeseems mega important. Maybe a post vacation task for myself, unless i can convince señor @dgeb or @twokul ?simonexmachina commentedon Dec 3, 2015
Oh man that's not nice. Okay I'll do it when I get back to the office (with
gloves on). I'm gonna put your name on it Stef ;)
On Thu, 3 Dec 2015 at 12:36, Stefan Penner notifications@github.com wrote:
robclancy commentedon Dec 26, 2017
Did he make it back to the office? 😨