This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-26
Channels
- # admin-announcements (1)
- # alda (44)
- # aws-lambda (6)
- # beginners (8)
- # boot (187)
- # capetown (5)
- # cider (25)
- # cljs-dev (24)
- # cljsrn (93)
- # clojure (45)
- # clojure-austin (9)
- # clojure-canada (2)
- # clojure-greece (1)
- # clojure-mexico (3)
- # clojure-poland (3)
- # clojure-russia (1)
- # clojure-spec (12)
- # clojure-uk (13)
- # clojurescript (86)
- # cursive (9)
- # datascript (3)
- # datomic (32)
- # defnpodcast (4)
- # devcards (23)
- # editors (3)
- # emacs (5)
- # hoplon (27)
- # immutant (3)
- # lein-figwheel (9)
- # leiningen (4)
- # luminus (10)
- # om (32)
- # onyx (2)
- # other-languages (1)
- # perun (1)
- # protorepl (8)
- # re-frame (13)
- # reagent (2)
- # remote-jobs (2)
- # ring (3)
- # spacemacs (4)
- # spirituality-ethics (3)
- # test-check (16)
- # untangled (65)
- # yada (50)
@leo.ribeiro: both, path parameters and query parameters are available in the :params
key in the request and can be destructured by compojure. So (ANY „/foo/:id“ [id p1 p2] (…))
should work when requesting /foo/123?p1=a&p2=b
i get that from this call: (ajax/GET {:url "https://data.gov.sg/api/action/datastore_search" :data {:resource_id "9326ca53-9153-4a9c-b93f-8ae032637b70" :q "Males"} :success #(println (str (.. % result total) " data results. success!")) :dataType "jsonp"})
Hey, I have a beginner re-frame question (cross posting from the re-frame channel): What’s the best way to preload an image I have access to before a component renders but not when my application starts? The ideas I've had are: * Use the js interop and create an image object as soon as I know the image URL which I could pass in to a my component at render time, but I don't know how to use an image object with Hiccups. * "Render" the component as soon as I know the image URL but set the style to "display=none". When I need to actually render the component update the style. Are there any better ones?
I’m also a front end beginner, so any confirmation that this is a sane way of thinking is also appreciated 😉