This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-05-16
Channels
- # beginners (176)
- # boot (11)
- # cider (12)
- # cljs-dev (65)
- # cljsrn (54)
- # clojars (18)
- # clojure (195)
- # clojure-austin (1)
- # clojure-dev (2)
- # clojure-italy (8)
- # clojure-quebec (1)
- # clojure-russia (51)
- # clojure-serbia (3)
- # clojure-spec (24)
- # clojure-uk (28)
- # clojurescript (41)
- # cursive (14)
- # data-science (60)
- # datascript (2)
- # datomic (111)
- # emacs (6)
- # figwheel (1)
- # graphql (16)
- # hoplon (26)
- # juxt (2)
- # lein-figwheel (3)
- # lumo (12)
- # off-topic (8)
- # om (14)
- # pedestal (22)
- # perun (2)
- # proton (1)
- # re-frame (29)
- # reagent (27)
- # ring (17)
- # ring-swagger (2)
- # rum (3)
- # spacemacs (3)
- # unrepl (155)
- # untangled (28)
- # vim (4)
The full stack untangled-ui demo uses a mock network. https://untangled-web.github.io/untangled-ui/guide.html#!/untangled.ui.Forms__10_Full_Stack_Demo But I've got it going using a real client / server setup. If I do a trick it works fine. When first up I see the list of phone numbers in the browser window, but clicking on them doesn't work. What I get is "No queries exist at the intersection of component path (app.root/Root app.ui/TopLevelRouter app.ui/TopLevelRouter-Union app.ui/PhoneList) and data path [[:screen/phone-list :tab]]"
in the browser console. The trick to get everything to work is to make figwheel do some reloading of app.core
by commenting out :refresh
, letting figwheel hot reload, then un-commenting the :refresh
.
I haven't changed any of the code, just made it full stack and obviously in different namespaces. Here's where I need to make the change https://github.com/chrismurrph/csv-to-csv/blob/master/src/client/app/core.cljs.
Glad you're back and out from the wild! Yes I think it is something more interesting than some simple timing problem. I did try putting in an artificial delay for the client<->server round trip - simply because that's what I see as the main difference between mock and real server - but that didn't help.
I seem to remember having a similar problem with a demo that I discovered and fixed…cannot recall the problem though
I didn't change the code. Just wanted to move to client/server situation, for my own re-learning of Untangled. app.api/server-state
has all the initial phone numbers, on the server. make-phone-number
is now a function only available on the server.
Yes - I can get them to load perfectly as long as I do the comment/un-comment trick: https://github.com/chrismurrph/csv-to-csv/blob/master/src/client/app/core.cljs#L19
you could probably get an equivalent “fix” by adding a no-op transact to a button at the root of the UI so the thing re-renders.
I suspect when it does a refresh render and tries to minimize refresh it needs the ident in order to properly index the (refreshed) component