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
thx @levitanong
@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?
could potentially use react virtualized
https://rawgit.com/bvaughn/react-virtualized/master/playground/tree.html