SteveSanderson/knockout — Issue #270: subscription.suspend() / .continue()
Author: Bombo
Created: 2012-01-11 08:25:37+00:00
State: open

Hello Steve,

I was having a little fun with manual subscriptions and the possibility to dispose one in cases where I didn't need or want the subscription to fire. After finishing all the operations needed, I create a new subscription with the same callback. Seemed to work just fine in most cases.

Sadly though the disposed subsciprion obviously looses its place in the subscription queue and thus has a lower priority than a foreach-template subscription.

When some new properties on array elements are needed for the template and those properties are usually set via the disposed and renewed manual subscription the templating obviously fails.

To cut a long story short: It would be nice, if a manual subscription could be suspended and continued at a later point in time. The code changes to support this behaviour doesn't seem too big. But maybe that's just my newbie eye on that matter. :)

Thanks in advance!
Boris