re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
Fredrik Andersson 2021-02-02T17:41:46.033800Z

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-himik 2021-02-02T17:46:07.033900Z

> 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.

Fredrik Andersson 2021-02-02T17:47:12.034100Z

mm ok