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
Do we really need both preEmit and shouldEmit? Code from preEmit could just as easily be put inside shouldEmit instead.
I see the values of the explanatory names and not having to actively return true if you just want to run code pre-emission, but is that worth muddying the API?
As for having to return true to proceed, we could switch it so that emission is cancelled if return value is true.
The text was updated successfully, but these errors were encountered:
There is currently a little implementation mistake with preEmit... it really should take a return value and emit that value as argument instead. If undefined it should just pass through the arguments as the action got it.
Do we really need both
preEmit
andshouldEmit
? Code frompreEmit
could just as easily be put insideshouldEmit
instead.I see the values of the explanatory names and not having to actively return true if you just want to run code pre-emission, but is that worth muddying the API?
As for having to return true to proceed, we could switch it so that emission is cancelled if return value is true.
The text was updated successfully, but these errors were encountered: