This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-04-12
Channels
- # beginners (47)
- # boot (5)
- # bristol-clojurians (1)
- # cider (45)
- # clara (2)
- # cljs-dev (11)
- # cljsrn (47)
- # clojure (169)
- # clojure-brasil (2)
- # clojure-dusseldorf (22)
- # clojure-finland (1)
- # clojure-italy (9)
- # clojure-nl (3)
- # clojure-poland (2)
- # clojure-russia (4)
- # clojure-spec (79)
- # clojure-uk (105)
- # clojurescript (59)
- # core-async (39)
- # cursive (31)
- # datomic (10)
- # devcards (1)
- # duct (6)
- # editors (9)
- # emacs (12)
- # figwheel (1)
- # fulcro (50)
- # java (4)
- # mount (1)
- # off-topic (47)
- # onyx (33)
- # pedestal (1)
- # protorepl (1)
- # re-frame (32)
- # reagent (45)
- # ring-swagger (6)
- # shadow-cljs (100)
- # tools-deps (6)
- # uncomplicate (27)
- # vim (3)
Ah, ok, thanks.
@tony.kay, forgive me, I don't actually think I'm following. Where do I put that? For proof of concept, I tried this:
(easy/make-fulcro-server
:config-path config-path
:env.edn/PORT 8000
But that doesn't seem to do anything. Is it a JVM option? Like -D:env.edn/PORT 8000
?
{:port :env.edn/PORT}
tells the config system to read the value of the port key from the env variable PORTso, I’d add a production.edn
file into your resources, perhaps in the config folder, and that is the config path I’d give via server main.
> I mean, you already did an optimistic update, so the UI should already be correct. What is there to refresh?
Well, if I call the pristine->entity*
the UI reverts to the unchanged fields/undoes the changes.
entity is always your entity, and you’re always editing your entity. The pristine is the backup copy 🙂
That did the trick. Thanks @tony.kay
@tony.kay so technically I should be able to drop in fulcro like so? https://gist.github.com/njj/a9f79388584adbcff525008a8fec7fae#file-project-clj-L5-L13
then do a lein deps :tree
and make sure you don’t have any untangled stuff or Om Next coming in
be esp. careful about versions of guava
that you get warnings about…that can break the build if it chooses an old one