This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-11-16
Channels
- # aleph (3)
- # announcements (14)
- # babashka (16)
- # beginners (85)
- # calva (6)
- # cider (9)
- # clojure (42)
- # clojure-australia (8)
- # clojure-europe (30)
- # clojure-nl (4)
- # clojure-uk (29)
- # clojuredesign-podcast (7)
- # clojurescript (25)
- # cursive (4)
- # data-science (1)
- # datomic (31)
- # emacs (1)
- # events (1)
- # fulcro (16)
- # instaparse (2)
- # java (37)
- # kaocha (3)
- # malli (3)
- # meander (19)
- # membrane (7)
- # off-topic (13)
- # pathom (4)
- # pedestal (10)
- # re-frame (17)
- # reveal (3)
- # rewrite-clj (1)
- # ring (9)
- # shadow-cljs (17)
- # spacemacs (2)
- # sql (34)
- # tools-deps (88)
- # vim (4)
am i correct in thinking that no :leave
function will ever be called if there is a handler anywhere in the interceptor stack?
or just those whose sister :enter
functions have not been invoked?
or just those whose interceptor is placed after the handler?
i was reading something in the documentation about this just a few days ago, but i can't seem to find it. what i see now says: the handler must be the last interceptor. i assume other interceptors' :leave
functions will be invoked, even with a handler in the final position, even if they have no corresponding :enter
function, because not doing so would severely limit the use of handlers, ever.
every time an :enter
interceptor is called, its corresponding :leave
is added to the stack of things to call when unwinding
if your interceptor only has a :leave
fn defined, if must be passed throuh on the way in to be pushed to the stack
handlers are meant to be the last thing in the chain, and you can tell because they do not get the full context (just the :request
)
i.e: they cannot enqueue anything
they do not, however, prevent :leave
fns to be called when unwinding