This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-30
Channels
- # admin-announcements (3)
- # arachne (8)
- # beginners (5)
- # boot (52)
- # braveandtrue (4)
- # cider (17)
- # cljsrn (1)
- # clojure (36)
- # clojure-dusseldorf (2)
- # clojure-india (1)
- # clojure-russia (30)
- # clojure-uk (1)
- # clojurebridge (1)
- # clojurescript (47)
- # clojutre (1)
- # component (1)
- # core-async (3)
- # cursive (5)
- # datascript (1)
- # datomic (4)
- # emacs (1)
- # error-message-catalog (62)
- # garden (3)
- # hoplon (16)
- # jobs (5)
- # luminus (11)
- # mount (1)
- # om (32)
- # onyx (17)
- # spacemacs (4)
- # untangled (20)
- # yada (4)
How does one include external javascript (mixpanel, fullstory, google analytics) but only conditionally for prod and/or staging (but not dev) ?
@brianosaurus: make a production clubs build and add the necessary files to src-path. Or make a prod index file and add them in the html
Looks like you got some good info from the boot channel. Boot has great functionality for those kinds of processes.
hey all - i have only seen demos of optmistic updates, but what if one wants to do a mutation, and not see any change UI until reload from server shows the results of mutation ?
shoudl I just return
:remote true
from client -side mutations, and do follow-on "app/load" (or "untangled/load" as it is called now) after my transact! line?A rerender will get scheduled when you call transact, so bypassing the optimistic update seems fruitless. Also, you would need to merge and rerender that component(s) after server update. It's probably wiser to run the optimistic update and use a fallback if the server mutation fails.
hi, I just updated untangled-datomic to 0.4.8 and now I'm getting this error
Missing dependency :logger of untangled.datomic.impl.components.DatabaseComponent expected in system at :logger
but the changelog says Added dummy logger to avoid crashes
in the notes for 0.4.8
Right, this is a component error. You need to define a logger component on your system. There is one in untangled server I believe.
Actually. There isn't, it's in some of our in house libs, but making one is trivial.
@mahinshaw: does it have to conform to a protocol?
is there an example somewhere?
I had this issue and fixed it by just putting an empty map in for the logger :logger {}
@currentoor: as long as it implements component:Lifecycle you are good
oh cool
thank you