Fork me on GitHub

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?


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


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


I mean to "" (empty string)