This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-12
Channels
- # arachne (1)
- # beginners (26)
- # cljs-dev (53)
- # cljsrn (1)
- # clojure (140)
- # clojure-italy (13)
- # clojure-russia (14)
- # clojure-spec (5)
- # clojure-uk (6)
- # clojurescript (52)
- # datascript (4)
- # datomic (11)
- # dirac (11)
- # emacs (12)
- # hoplon (9)
- # jobs (4)
- # lein-figwheel (1)
- # off-topic (29)
- # om (10)
- # om-next (1)
- # pedestal (3)
- # protorepl (1)
- # re-frame (16)
- # ring (12)
- # rum (27)
- # slack-help (12)
- # spacemacs (27)
- # unrepl (19)
- # untangled (26)
- # yada (8)
hello all, little om.next
question. How do you interact with an API you don’t control ?!
Little use case, I am building a newsfeed from the New York Time API
. My UI is quite simple, something like that =>
(def init-data {:news-feed [{:id 1
:title "This is a title"
:author {:id 3 :name "Baptiste"}}
{:id 2
:title "This is an other title"
:author {:id 4 :name "Vincent"}}]})
The nyt API send me back completly different fields (https://developer.nytimes.com/archive_api.json) . Should I map their API to my app-state on the front-end ? Should I write a back-end which deal with it ? Feedbacks are welcomed 🙂@baptiste-from-paris That’s how I would do it, in the send
function, before passing it to the callback.
*in the front-end
ok, that’s what I am doing but it can become quite ugly
@baptiste-from-paris specter might help you shape your data
yes indeed
Hi. I'm interested in recursive queries and I want to do indented comments on entries. So a reply to a comment is indented one unit width. How can I ... make indentations cumulative, or do you recommend using list elements and styling via css that way?