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
It appears that hooks don't fully benefit from promise/observable returns. The suggestion is to use promise and observable returns and make callback API optional where possible.
The library already relies on hook functions arity, this could be used to change their behaviour based on function parameters.
validateOptions/transformOptions could possibly be useful with an option similar to dispatchReturn, just in case the behaviour needs to be unambiguous.
Currently single-dispatch mode is deprecated, call done when finished dispatching warning appears in case process function hook has 2 parameters. Additional doneReturn option (defaults to true for multi-dispatch) could possibly be useful for non-ending logics. I believe this approach supplements #93.
The text was updated successfully, but these errors were encountered:
It appears that hooks don't fully benefit from promise/observable returns. The suggestion is to use promise and observable returns and make callback API optional where possible.
The library already relies on hook functions arity, this could be used to change their behaviour based on function parameters.
This
validate
hookcould become
validateOptions
/transformOptions
could possibly be useful with an option similar todispatchReturn
, just in case the behaviour needs to be unambiguous.And this multi-dispatch
process
hookcould become
Currently single-dispatch mode is deprecated, call done when finished dispatching warning appears in case
process
function hook has 2 parameters. AdditionaldoneReturn
option (defaults totrue
for multi-dispatch) could possibly be useful for non-ending logics. I believe this approach supplements #93.The text was updated successfully, but these errors were encountered: