Fork me on GitHub
#re-frame
<
2018-10-11
>
witek21:10:14

Hi. The re-frame FAQ, explains "Why Can't I access Subscriptions From Event Handlers?". BUT! There is one aspect missing. When subscriptions are nested, the query functions are only invoked, when input signals have changed. But when event handlers have to invoke the query functions directly, they are alwas running. Even if the inputs haven't changed. Isn't that a good reason why one should use subscriptions in event handlers?

aarkerio23:10:52

Hi! is there a way to reset @atom-string after the dispatch?

frenata00:10:52

if atom-string is not stored in the app-db: [:create-question (first (swap-vals! atom-string (constantly "")))] if atom-string is from a subscription, I'd suggest that the event handler should have the responsibility to reset it

aarkerio23:10:36

I mean to "" (empty string)