Replies: 1 comment 1 reply
-
You could create a hook that allows swapping hook body. So the hook is added once and then you swap hook body as needed. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
There is only one method exported on hooks that is to Add.
Our requirement is to have a new hook for every request. After a redis connection is made, We can only call AddHook as below.
This causes new hooks to append to the list of older ones. So, the it creates log from older hooks as well.
Is there any way we can limit the number of hook to one but still be able to update it for each request.
Beta Was this translation helpful? Give feedback.
All reactions