This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-14
Channels
- # admin-announcements (5)
- # aws (3)
- # beginners (35)
- # boot (96)
- # cider (1)
- # clara (6)
- # cljs-dev (12)
- # cljsrn (34)
- # clojure (151)
- # clojure-boston (3)
- # clojure-brasil (4)
- # clojure-canada (1)
- # clojure-czech (8)
- # clojure-dusseldorf (11)
- # clojure-japan (5)
- # clojure-russia (120)
- # clojure-taiwan (1)
- # clojure-uk (3)
- # clojurescript (7)
- # component (27)
- # cursive (13)
- # data-science (45)
- # datomic (1)
- # devcards (5)
- # emacs (3)
- # funcool (65)
- # hoplon (103)
- # instaparse (3)
- # jobs (14)
- # jobs-discuss (1)
- # juxt (2)
- # lein-figwheel (2)
- # off-topic (16)
- # om (20)
- # onyx (49)
- # parinfer (17)
- # perun (1)
- # planck (5)
- # proton (4)
- # re-frame (14)
- # ring-swagger (4)
- # spacemacs (4)
- # untangled (110)
- # yada (14)
@cork I will be also interested, I looked at this https://github.com/apa512/clj-rethinkdb, just couple days ago and it seemed concise
Hello. Does anyone have any advice on organizing kinda global context with re-frame? For example current locale or business object metadata. It's ubiquitous for all components yet depends on app-db
. Is it ok to make every component with localizable pieces add locale subscription (sounds cumbersome and there will be huge amount of subscriptions)? Or is it ok to use app-db
outside of re-frame subscriptions?
@cork we are
but it’s kind of an internal specific use case
If it’s super global, I don’t think it’s the end of the world if it’s outside of app-db, although maybe you could transform the data in app-db based on locale instead?
@danielcompton: transforming data based on current locale sounds wrong to me. Moreover there are different dependant parts and you have to remember to update all of them on locale change. And there are kind of two sources of truth. But making some very close to root subscriptions which depends on current state (locale/metadata) sounds ok i guess.
sure, whatever makes sense for your app
@fenton I found what I was looking for: https://github.com/Day8/re-frame#control-via-fsm
from my understanding, it does not do it explicitely, but kind of
@fenton: re-frame is powered by an FSM
and all our apps are finite state machines, some are just more explicit about it than others
Thanks @pepe @danielcompton
I'll jump in to RethinkDB a bit more play with transforming the JSON data into Re-Frame's app-db
@danielcompton: right. Was wondering how to formalize with state tables and whatnot.