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
This is a suggestion for chaining procedure, it would be good to have a .use() instead of having to pass the chained procedure as an argument to another procedure, makes things a bit difficult to nest.
The text was updated successfully, but these errors were encountered:
I have a procedure for logging, one for checking user auth, another one for rate limiting.
At the moment I need to do something like loggingProcedure(authProcedure(rateLimitingProcedure)). If I want to pass in some arguments to the procedure (ie: roles to check for auth), I need to nest them loggingProcedure(authProcedure(roles)(rateLimitingProcedure)). It's all possible to do as it is but a chaining method like .use() would help for readability and composability.
This is a suggestion for chaining procedure, it would be good to have a
.use()
instead of having to pass the chained procedure as an argument to another procedure, makes things a bit difficult to nest.The text was updated successfully, but these errors were encountered: