This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-14
Channels
- # beginners (110)
- # boot (50)
- # cider (29)
- # cljs-dev (80)
- # cljsrn (10)
- # clojure (54)
- # clojure-italy (3)
- # clojure-korea (24)
- # clojure-russia (50)
- # clojure-spec (12)
- # clojure-taiwan (1)
- # clojure-uk (67)
- # clojurebridge (14)
- # clojurescript (118)
- # component (3)
- # cursive (11)
- # datomic (28)
- # dirac (31)
- # emacs (45)
- # flambo (2)
- # hoplon (53)
- # immutant (3)
- # jobs (5)
- # mount (8)
- # off-topic (10)
- # om (5)
- # onyx (52)
- # other-languages (2)
- # parinfer (1)
- # pedestal (1)
- # proton (39)
- # protorepl (2)
- # re-frame (22)
- # remote-jobs (1)
- # ring (13)
- # ring-swagger (2)
- # test-check (9)
- # untangled (28)
- # vim (12)
@sandbags I have experieced that yes when adding the debug interceptor to a handler, but it was so intermittent that I did not explore it further
I have a problem with a subscription which is not reacting as I want it. I registered a handler, which updates the db. The db is set to an empty map for this case. On the loading process, the db is filled with data from an external source. When this happens, the handler is called and the db is set correctly, but the subscription doesn't react.
The log reads 1. Menu refreshed 2. Menu data {:categories [], :tours []} 3. Menu Handler called
So shouldn't the subscriptions be called, after the handler changed the Database?
@richiardiandrea hrmm... i've not used interceptors (indeed just reading about them now and they may address some of why i am poking about in the console anyway)
I'm literally baffled that, what I think is the source of the data the subscriptions are returning, is nil
I don't see how this can be unless re-frame is secretly storing the data somewhere else or Atoms can have multiple values in different contexts which seems, somewhat, counter to their purpose
@sandbags have you checked that the js context in your repl is the correct one ? (it happens sometimes for me that i have multiple browser windows, or mobile simulators, or actual phones, open and it can be random which one gets to attach to the repl)
@mccraigmccraig i think you have it... i switched to Chrome briefly to test something and forgot to close it!
thank you... at some point i would have closed Chrome without making the connection and the "bug" would have mysteriously disappeared leaving me very confused 🙂
race-condition FTW 🙂
also i now get to see how interceptors change my life so thank you also @richiardiandrea
i tried to implement time traveling in the https://github.com/flexsurfer/re-frisk library. but i need re-frame data, and i think it will be easy to implement export/import functionality, we just need initial state and an entire list of events
You can do this with the undo/redo list of events
but it's not as polished/easy to turn on as Elm's one