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
we already set the function context to the handlers so that you can call other handlers
Do you mean so you can do things like this.pending()? If so, is that really that useful? I would have thought being able to access the component scope would be far more useful than the when scope.
Often you want to call another component function from within a when handler. Right now there's no way to set the function context so you end up having to assigning functions to local variables.
Ideally you should be able to optionally pass in a function context as the second argument (
when(handlers, context)
). The problem is we already set the function context to the handlers so that you can call other handlers.Not sure how to solve this, needs some thought.
The text was updated successfully, but these errors were encountered: