This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-08-23
Channels
- # babashka (22)
- # beginners (8)
- # calva (7)
- # clj-kondo (65)
- # cljdoc (9)
- # cljsrn (1)
- # clojure (53)
- # clojure-australia (4)
- # clojure-europe (49)
- # clojure-gamedev (2)
- # clojure-italy (13)
- # clojure-nl (1)
- # clojure-spec (19)
- # clojure-uk (4)
- # clojurescript (48)
- # clojureverse-ops (1)
- # core-async (3)
- # css (2)
- # cursive (15)
- # datomic (6)
- # degree9 (2)
- # depstar (4)
- # emacs (2)
- # find-my-lib (1)
- # fulcro (16)
- # graalvm (11)
- # gratitude (1)
- # honeysql (9)
- # introduce-yourself (2)
- # jobs (1)
- # joker (2)
- # livestream (2)
- # malli (16)
- # nbb (4)
- # news-and-articles (2)
- # off-topic (1)
- # pathom (7)
- # polylith (10)
- # practicalli (1)
- # re-frame (7)
- # reitit (1)
- # releases (3)
- # remote-jobs (1)
- # rewrite-clj (19)
- # shadow-cljs (10)
- # tools-build (1)
- # tools-deps (9)
- # uncomplicate (1)
- # vim (3)
- # xtdb (44)
I have the following map returned by reg-event-fx:
2 {:db (assoc db :raise-loading false)
3 :dispatch [:save-contract-address
4 (.. contract-instance -options -address)]}
but when I remove dispatch the db change occurs, but when itโs present, the db change does not occur. How to fix thisI'm 99% certain that your observation is incorrect. Or you have some incredibly non-trivial setup with interceptors.
Ok so https://github.com/day8/re-frame/blob/master/docs/FAQs/Inspecting-app-db.md mentions that: > inspecting via a REPL might be clumsy Is part of this "clumsiness" having incomplete access to the database? In my experience so far, some keys are missing from the database when I'm trying to access it from the REPL but they're there in the GUI (the browser). Can someone confirm that this can happen from time to time? If so, how can this be expected behaviour?
I don't think I've ever had that problem with the top level of the database but yes, it happens regularly with nested maps, like
(-> @re-frame.db/app-db
:x
:y
keys)
No idea. Can't even think of anything less bizarre than "you have shadowed the keys
function by accident".
I see, thanks! I avoid :use and :refer like the plague and there's no keys function in the namespace project I'm trying to access the db from but that was a nice guess ๐
I'm sure it's my fault somehow but I don't have the time right now to investigate more. I'll use the browser for inspections, it's no big deal ๐