This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-26
Channels
- # aws-lambda (1)
- # beginners (71)
- # boot (70)
- # bristol-clojurians (1)
- # cider (2)
- # clara (13)
- # cljs-dev (96)
- # cljsjs (6)
- # cljsrn (5)
- # clojure (74)
- # clojure-android (3)
- # clojure-austin (4)
- # clojure-dev (10)
- # clojure-russia (6)
- # clojure-spec (28)
- # clojure-uk (128)
- # clojurescript (64)
- # cursive (2)
- # datascript (18)
- # datomic (116)
- # dirac (1)
- # emacs (12)
- # events (10)
- # hoplon (109)
- # jobs (1)
- # jobs-discuss (21)
- # leiningen (2)
- # luminus (6)
- # off-topic (19)
- # om (21)
- # om-next (5)
- # onyx (4)
- # parinfer (29)
- # perun (20)
- # re-frame (53)
- # reagent (21)
- # remote-jobs (5)
- # ring-swagger (2)
- # spacemacs (6)
- # untangled (42)
- # vim (5)
ok, next video: https://youtu.be/uxI2XVgdDBU How to build reusable components in Om Next/Untangled. Includes an automated tool for converting HTML to React (in the references github source), tips about Chrome, local reasoning, visual development with devcards, making mutations more usable in IntelliJ (doc strings and "jump to" navigation).
Hey guys, I'm trying to achieve something, but I can't seem to get it right. I'm writing a small application to store and edit forms using Om.Next and DatasScript. I'm running DataScript in the backend to store the forms. In the front-end, I'd like to display a list of form id's, and when one is clicked/selected, the corresponding form. My problem is that I can't seem to query both all form ID's and all the data from a single form using the same pull syntax.
To get all the id's, I have to do something like (d/q '[:find ?id :where [_ :form/id ?id]) (d/db conn))
, while to get all the fields from a single form, I have to do something like (d/pull (d/db conn) '[*] <eid>)
@linuss I recommend trying in #datascript or #datomic, it's not really an om question.
So, i'm looking at some Om.Next example projects, and they seem to use an om/parser
both in the front- and in the back-end. Would you guys say this is a good practice?
It sure helps @linuss, you don't need to implement your own query parsing (as in, separating out all the different reads and joins).
Okay, I see. It does seem rather cumbersome having to parse a query twice though (once in the front-end and then again in the back-end)
Although I suppose the front-end functions could simply pass their queries on to the back-end
@tyler Possible, yes. I tend not to.
im building an om.next interface for a json api. i've written a read parser that works against the client-side app state, and also collects the idents that it cant resolve. i was thinking of using this set of idents to trigger requests to the json api to lazily fetch the data needed. is this a reasonable approach?
i've tried returning something like the following from the read parser:
{:value everything-found
:hg-remote set-of-missing-idents}
and understood this would fire my send
function with the missing idents. the send
function does fire, but not with the set of idents (often nil
). so i can't quite figure out what i'm allowed to put as set-of-missing-idents
. from the documentation, i see that its supposed to be ast fragments, but i think i haven't quite got the structure right. can anyone point me to an example of this structure?@williballenthin not exactly an answer, but you might try the query->ast function on some of your queries: https://github.com/omcljs/om/wiki/Documentation-(om.next)#query-ast
that should give you some examples
thanks @danielstockton, i'll use that function as an example and ensure i'm passing an ast that looks just like what query->ast
would produce.
See http://untangled-web.github.io/untangled/guide.html#!/untangled_devguide.B_UI and http://untangled-web.github.io/untangled/guide.html#!/untangled_devguide.M10_Advanced_UI
the first shows d3, the second Victory. The former isn't react, just raw JS D3. The latter is raw react
Untangled is just a set of libraries that give you additional things to use with Om Next, so the UI stuff is stock Om for the most part
@danielstockton that did it! thanks for the pointer.