This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-11
Channels
- # aws (15)
- # beginners (55)
- # boot (116)
- # bristol-clojurians (2)
- # cider (4)
- # cljs-dev (439)
- # cljsrn (14)
- # clojure (135)
- # clojure-argentina (3)
- # clojure-czech (4)
- # clojure-italy (60)
- # clojure-russia (1)
- # clojure-spec (48)
- # clojure-uk (42)
- # clojurescript (170)
- # cloverage (11)
- # core-async (19)
- # cursive (13)
- # datomic (48)
- # emacs (2)
- # graphql (3)
- # hoplon (8)
- # jobs (1)
- # jobs-discuss (5)
- # klipse (11)
- # luminus (5)
- # lumo (5)
- # mount (48)
- # off-topic (96)
- # om (17)
- # onyx (14)
- # parinfer (30)
- # protorepl (1)
- # re-frame (90)
- # reagent (2)
- # remote-jobs (1)
- # spacemacs (12)
- # specter (20)
- # uncomplicate (1)
- # untangled (65)
- # vim (2)
- # yada (8)
Why would triggering a mutation from a callback not rerender if you also call update-state!
in the same callback?
Are there any examples of using om for exporting static builds that can be deployed to something like s3?
something along the lines of: https://zeit.co/blog/next3-preview
@coetry this sounds more like a CLJS question than an Om, I guess in practice you can just generate a build in a single file and deploy 🙂 just a hint, you can do this in CLJS: (defn ^:export some-fn [] ...)
, this will prevent the function name to be mangled or removed on the advanced output 😉
it does into the state, but the problem is it's not normalized, so i've ended up with state that's both denormalized and normalized at the same time (in different places)
https://github.com/sundarj/hiki/blob/master/src/cljs/hiki/core.cljs the problem is the playlists/set-playlists mutation, which does a simple assoc
on the state, instead of an assoc-in
by ref
https://rawgit.com/sundarj/hiki/master/target/index.html you can see the running app here, if it helps
@sundarj are you familiar with om/tree->db
? https://github.com/omcljs/om/blob/master/src/main/om/next.cljc#L2035
it took some hammock & repl time, but i managed to get there in the end. thank you kindly for the help 🙂 https://github.com/sundarj/hiki/commit/99e1b8e4639f2a783d3a5286bbe61f1dff8bf05d