Fork me on GitHub
#untangled
<
2016-04-11
>
brianosaurus19:04:14

Is the preferred way to wrap middleware in untangled to use set-pre-hook! ?

adambrosio20:04:49

it is, but note that you generally want to get-pre-hook and then compose in the handlers you want and set-pre-hook (let [pre-hook (.get-pre-hook handler)] (.set-pre-hook! handler (comp pre-hook some-handler))