Fork me on GitHub

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 this


I'm 99% certain that your observation is incorrect. Or you have some incredibly non-trivial setup with interceptors.


Ok so 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?


So (keys @re-frame.db/app-db) outputs only some of the keys, not all of them?


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


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 ๐Ÿ˜‰