Fork me on GitHub
#re-frame
<
2020-10-30
>
Oliver George02:10:55

Wondering if there's a common pattern for an interceptor which stops a handler from being called

Oliver George02:10:37

Looks like you could empty the :queue from the context... something like that perhaps.

mikethompson06:10:57

@olivergeorge I've never used the technique. But certainly possible as you say.

👍 3
p-himik10:10:52

An idea - when -deref is called on a sub somewhere where reagent.ratom/reactive? is false, it should issue a descriptive warning, maybe with a link to the relevant documentation entry. What do you think?

👍 3
p-himik10:10:20

(I'm assuming my understanding of what reagent.ratom/reactive? checks for is correct)

Lucy Wang10:10:49

+1, to ensure the deref of a subscription is always inside a reagent component. There should also be a way to opt out of that.

borkdude23:10:05

Find re-frame events and subscriptions easily => https://github.com/borkdude/grasp#finding-keywords

👍 18
👀 3