Fork me on GitHub
#re-frame
<
2021-02-02
>
Fredrik Andersson17:02:46

what is the recommended way to handle event listeners in re-frame? I use Firestore as backend, which works like having multiple websockets running. Listeners need to be setup and teared down dynamically

p-himik17:02:07

> Listeners need to be setup and teared down dynamically Effects are the best place to do that. Other than that, you just dispatch on some events and change your app-db appropriately so that the relevant subscriptions can derive their values and notify the views.