This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-01
Channels
- # announcements (10)
- # asami (2)
- # babashka (10)
- # beginners (55)
- # biff (37)
- # calva (9)
- # cherry (1)
- # clj-kondo (11)
- # clojure (221)
- # clojure-bay-area (12)
- # clojure-europe (77)
- # clojure-hungary (3)
- # clojure-nl (5)
- # clojure-norway (12)
- # clojurescript (11)
- # cursive (1)
- # data-science (11)
- # emacs (27)
- # figwheel (3)
- # fulcro (11)
- # graphql (5)
- # helix (7)
- # honeysql (3)
- # humbleui (9)
- # interceptors (2)
- # introduce-yourself (2)
- # kaocha (12)
- # lsp (27)
- # malli (6)
- # nbb (70)
- # off-topic (6)
- # re-frame (6)
- # react (3)
- # reitit (9)
- # releases (2)
- # scittle (29)
- # shadow-cljs (26)
- # sql (13)
- # tools-deps (61)
is it legal to call subscriptions in coeffects?
Sir, this is re-frame police. Calling subscriptions in coeffects is illegal, and doing so will result in a severe action by the way of issuing a warning in the JS console.
that’s what I said!
I’m helping a friend whose app stores everything in firebase and reads things via re-frame/firebase. In order to handle an event he subscribes to the needed subs in a view, then, when a user clicks – sends this data to the handler. I’m trying to understand, what could be a way out of this. I think he got used to re-frame/firebase supplying all data as a sub. But then started to use it for the things it wasn’t meant for. I would love to transition to a state of the app where I would load needed data based on the route. This means that either I need to omit the re-frame adapter and query Firebase myself, or that I should use the adapter as a query tool and also an event source to update the local state on Firebase changes.
cc @U3JJ35GUT, sir, perhaps you can offer an advice about using your adapter to populate the DB and keep it up to date? Rather than supplying only the subscriptions layer.