This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-06-17
Channels
- # admin-announcements (4)
- # boot (93)
- # cider (4)
- # cljsrn (61)
- # clojure (137)
- # clojure-austin (2)
- # clojure-brasil (2)
- # clojure-dev (11)
- # clojure-dusseldorf (10)
- # clojure-greece (245)
- # clojure-russia (37)
- # clojure-spec (60)
- # clojure-taiwan (1)
- # clojure-uk (24)
- # clojurescript (36)
- # cursive (18)
- # datomic (20)
- # emacs (20)
- # funcool (1)
- # hoplon (29)
- # jobs (1)
- # keechma (1)
- # lein-figwheel (1)
- # leiningen (1)
- # off-topic (3)
- # om (10)
- # om-next (1)
- # onyx (60)
- # other-languages (14)
- # planck (26)
- # random (3)
- # re-frame (21)
- # ring (2)
- # spacemacs (8)
- # specter (56)
- # spirituality-ethics (2)
- # uncomplicate (1)
- # untangled (68)
- # yada (3)
@jasonjckn: Hm. So, I'm not seeing nested normalization working on the older version
@tony.kay: need anything from me? when I tested it worked on 0.5.2 but not 0.5.3-snapshot
@jasonjckn: That should fix it. Pushed new snapshot to clojars
welcome. Unions are screwy, so I'm glad to have this automated helper...makes things so much better. And the initial-app-state
cookbook recipe is so trivial and clear now...very nice
I'll probably cut a release of 0.5.3. Need to make some more docs, tutorial, and training vids on this
one day i was thinking of implementing mixins for om.next like https://github.com/plumatic/om-tools but probably won't have time for a while 😉
We got bit by https://github.com/omcljs/om/issues/604 today - wasn't sure what you guys were discussing at the time but glad I remembered there might be an om bug or could have wasted a lot of time on it.
In our case it's working with enums in datomic, so it doesn't really make sense to normalize those (changing {:db/ident x}
to [:enum/by-ident x]
doesn't seem to gain anything), but we might end up normalizing them anyway just to get it working.
@therabidbanana: you could consider using untangled.datomic.core/replace-ref-types
so you don’t have to refer to enums in a nested data structure. that’s what we do for all of our enums
when I do load-field-action, the field gets replaced with an untangled loading keyword, and there's a rerender that happens, what if I just want to keep the old data around and rendered until the new data comes in ?
load-field
just builds the query for you, but if puts the marker in the app state at that spot
Untangled does the loading marker for your convenience...it doesn't need to do it; however, we don't currently have a way for you to say "don't do it"
it would be trivial to add...just put something in the load mutation that records "no loading marker"
The plumbing, when reading the ready-to-load, peppers those around in app state...it could filter out the ones marked that way
i hooked up a spinner to :ui/loading-data on the root, so I really don't need any UIs like "loading.." throughout my entire app
@ethangracer: thanks - I'll take a look at that - sounds relevant to our needs