The observables created by ctrl/game.js and their subscribes don't get cleaned up properly, resulting in lots of instances of the pull-stream (and observable) made by user_game_updates_watcher.js.
Over time, ssb-chess gets more sluggish because of this (as routes are changed.)
I should
Tidy up ctrl/game.js so that it doesn't require intermediate observables that need to be removed by making a utility function to turn a promise into an observable. This should hopefully mean the removal of the listeners cascades down (eh, I think.)
Remove the subscribers when mithril onRemove lifecyle method is called for components using observables.
The observables created by ctrl/game.js and their subscribes don't get cleaned up properly, resulting in lots of instances of the pull-stream (and observable) made by user_game_updates_watcher.js.
Over time, ssb-chess gets more sluggish because of this (as routes are changed.)
I should