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
Subscribing to a model change is a nice feature but it's missing documentation and the usage is a little counterintuitive:
self.context.subscribe_model(self, type(model))
Instead of type(model) as a parameter, I would expect model or MyClass.
Also, instead of just subscribing to the model and handling the change in the def on_change_model(self, model) method of the class, passing a method, like in other context subscriptions, would be a nice feature. If needed, I will create another issue for this topic.
The text was updated successfully, but these errors were encountered:
Subscribing to a model change is a nice feature but it's missing documentation and the usage is a little counterintuitive:
Instead of
type(model)
as a parameter, I would expectmodel
orMyClass
.Also, instead of just subscribing to the model and handling the change in the
def on_change_model(self, model)
method of the class, passing a method, like in other context subscriptions, would be a nice feature. If needed, I will create another issue for this topic.The text was updated successfully, but these errors were encountered: