This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-23
Channels
- # admin-announcements (38)
- # announcements (1)
- # aws (1)
- # beginners (195)
- # boot (1)
- # business (3)
- # cider (100)
- # cljsrn (37)
- # clojure (99)
- # clojure-russia (69)
- # clojure-switzerland (1)
- # clojurescript (120)
- # datavis (26)
- # datomic (23)
- # devcards (4)
- # editors (38)
- # hoplon (18)
- # ldnclj (27)
- # lein-figwheel (28)
- # off-topic (50)
- # om (329)
- # onyx (255)
- # portland-or (1)
- # re-frame (8)
- # reagent (18)
- # spacemacs (5)
- # testing (1)
I added pull-tx and q-tx to Posh today, which let you do pull requests and queries to get the state for your components
@mikethompson: yes! as-element
did the trick. Now I can write [Column {:header (r/as-element [Cell [:img {:src ".."}]]}]
and works perfectly, thank you
if anyone is curious this is a gist for fixed-data-table for version 0.6.0 https://gist.github.com/frankiesardo/17905c5ec26bfc84df7d
@hkjels: I don't know how re-frame works exactly, but I think the Posh functions pull-tx and q-tx are a lot like re-frame's subscriptions, except they can declaratively get data from the database. then the transactions in Posh are sort of like re-frame's events, and when-tx! could be used for event handling/transformation.
@mpdairy @pepe : afaics pull-tx
and q-tx
return reaction
s , so they could be returned from re-frame subscriptions, and when-tx
takes a handler-fn which could easily enough dispatch
a re-frame event
so you could then look at replacing the default re-frame db with a DataScript db... my guess is that's going to be pretty easy too, though i know nothing about DataScript so it is only a guess
I was trying out re-frame and secretary (for routing). But, when I do (secretary/dispatch! "/users/gf3")
it is not updating the URL. Any idea?
@sreenath.n: are you setting up the History
object correctly?
(let [h (History.)]
(goog.events/listen h EventType/NAVIGATE #(secretary/dispatch! (.-token %)))
(doto h (.setEnabled true)))
and that needs to be evaluated before your call to secretary/dispatch!
Yes, I am. Infact I used, lein new re-frame <project-name> +routes
to get the skelton
which add this boilerplate by default
Does anyone has a demo app to which I refer to?
you're using re-frame and this is the #C0620C0C8 room, maybe try #C073DKH9P
I know nothing about 1) re-frame 2) the project skeleton
Thanks @bostonaholic . I have posted there, now awaiting reply