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
First, thanks for this neat package! It looks like it's not possible to obtain the return value of the triggered callbacks as trigger('foo') always returns True.
However, I think it would be nice to have this option to use callbacks to influence the control flow. Consider the following example where an event is triggered in a save method.
First, thanks for this neat package! It looks like it's not possible to obtain the return value of the triggered callbacks as
trigger('foo')
always returnsTrue
.However, I think it would be nice to have this option to use callbacks to influence the control flow. Consider the following example where an event is triggered in a save method.
The user can hook into the save method but the callback cannot send anything back to influence what's happening at the trigger point, like here:
If
trigger
would collect the callback returns such 'extension via event' could be implemented. Would you consider enhancing the trigger behaviour?The text was updated successfully, but these errors were encountered: