This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-20
Channels
- # beginners (106)
- # boot (25)
- # cider (2)
- # cljs-dev (100)
- # cljsjs (1)
- # cljsrn (8)
- # clojure (90)
- # clojure-brasil (1)
- # clojure-dev (7)
- # clojure-greece (2)
- # clojure-italy (4)
- # clojure-madison (1)
- # clojure-russia (15)
- # clojure-serbia (15)
- # clojure-spec (13)
- # clojure-uk (32)
- # clojurescript (88)
- # cursive (19)
- # datascript (13)
- # datomic (32)
- # defnpodcast (1)
- # dirac (43)
- # euroclojure (1)
- # graphql (5)
- # hoplon (11)
- # immutant (1)
- # jobs (6)
- # lein-figwheel (2)
- # liberator (2)
- # luminus (14)
- # lumo (22)
- # off-topic (12)
- # om (9)
- # onyx (49)
- # parinfer (45)
- # precept (4)
- # protorepl (2)
- # reagent (14)
- # ring-swagger (3)
- # sql (1)
- # test-check (58)
- # timbre (3)
- # untangled (86)
I wish mine would have failed. We really need to know the specific condition under which it fails.
@tony.kay No such var: om/app-state, compiling:(untangled/client/util.cljc:32:20)
, so I guess I should downgrade untangled a little bit too? How far?
I’ve been debating this one internally: the union component needs the ident in order to route, but do the children being routed also need the ident function?
I will check that out. Also, I will try to put together a simple test case to demonstrate the issue.
ok. I’m bummed you hit a snag like this. usually I’m able to help solve them pretty quickly
Do not worry! It’s been fun 😎 I just hope it’s not some kind of stupid mistake on my side, you’ve spent so much time on this. Appreciate it a lot!
the “shortcut” is common. It’s possible to talk about a subtree starting at some ident. I had never dumped the paths before, but it seems to do it all over the place.
I just turned off pathopt in the application. It is just an optimization, and one that Om isn’t seeming to want to support…so, I don’t mind disabling it
I’m way past my bedtime now, so chances are I’m just hallucinating or messing something up.
What? There’s no way to insert huge animated gif of absurdly happy person into Slack channel? Bummer 😎
So, general note to channel: Om Next pathopt seems to be generally broken (as of about alpha 42 at least). It is an undocumented optimization feature that Untangled was using from the early days, but it seems to not be something Om Next is too worried about.
I’m changing the default from true to false on this option, and it has cleared up one mysterious bug in my own code, and it looks like it was the solution to the above problem.
Unfortunately, Untangled’s option processing of pathopt got broken a while back and no one noticed…and there is no way in the old versions to turn pathopt off!
I’ve pushed an updated untangled-client library with the fix, but I cannot push to the navis namespace. So, if you want this fix without moving to the combo lib use awkay/untangled-client "0.8.1"
@tony.kay Are there other mechanisms to avoid querying from root when a component has an ident it can root it’s query from now?
gardnervickers: no. I’ve opened an issue in Om Next. D.N. seems to want it to work, so we can probably expect a fix.
I’ve got a legacy application that I’d really like to transition to untangled, however I won’t be able to change the database, for now, which is mongodb. Is it worth it, even though I’d be stuck with mongo?
@uwo you can write a parser to fetch data from anywhere you want, I wrong a blog post describing how to do that, it might be useful for you: https://medium.com/@wilkerlucio/implementing-custom-om-next-parsers-f20ca6db1664
Looking at the source from Untangled Getting Started, the Root component has a :ui/person-id
: https://github.com/awkay/untangled-getting-started/blob/master/src/main/app/basic_ui.cljs#L84, which I can't see being used anywhere.
cjmurphy: Yeah, clearly I refactored something and forgot it. On the road right now. Open an issue? Thanks!
gardnervickers: no. I’ve opened an issue in Om Next. D.N. seems to want it to work, so we can probably expect a fix.