This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-04
Channels
- # aleph (3)
- # beginners (37)
- # boot (45)
- # carry (1)
- # cljsrn (15)
- # clojure (78)
- # clojure-austin (2)
- # clojure-brasil (10)
- # clojure-czech (3)
- # clojure-dev (12)
- # clojure-dusseldorf (31)
- # clojure-hamburg (2)
- # clojure-italy (4)
- # clojure-poland (2)
- # clojure-russia (37)
- # clojure-spec (25)
- # clojure-uk (30)
- # clojurescript (160)
- # cursive (40)
- # data-science (1)
- # datomic (31)
- # emacs (7)
- # figwheel (4)
- # hoplon (73)
- # leiningen (1)
- # liberator (5)
- # luminus (7)
- # numerical-computing (1)
- # off-topic (31)
- # om (89)
- # onyx (66)
- # proton (5)
- # protorepl (1)
- # re-frame (18)
- # reagent (2)
- # ring (2)
- # spacemacs (1)
- # untangled (93)
- # vim (19)
- # yada (67)
@shaun-mahood did you try re-frisk/add-data ?
it can be any data, not only ratom, and you can update it as well, you can use it as is ,or organize specific structure, for example you can add log-ratom, and update data in that ratom, using your function (one-time-log x)
@shaun-mahood so, is re-frisk works in the separate window for you?
@shaun-mahood take a look https://github.com/flexsurfer/re-frisk/blob/master/dev/re_frisk/reagent_demo.cljs#L9
debugger warning fixed in 0.2.1, and also removed the annoying debugging println (emit)
is there a way that I can guarantee re-frame changes to the db have been flushed to the dom before I attempt to render a component?
for example, if I have a [:button] that when clicked affects some db change, then a component which wants to do a manual querySelection() after did-mount… how can I click that button -> db change -> render with changes (but not component waiting on querySelector, because the target node doesnt’ exist yet) -> render component with selector now that node exists
I can obviously do a requestAnimationFrame before rendering, but I’m curious if there’s a less-icky way to tackle this
@andre: I got it working in the separate window, thanks! add-data
seems to be working to log data, I'm having a bit of an issue getting it to work from within a reg-event-fx
function but it works outside of it and within reg-event-db
functions, so I think it's probably an issue with something else in my code. Thanks for the help, and for getting rid of the emit
call.
@andre: I got everything working, it's really nice to use so far - thanks for making it!
@shaun-mahood glad to hear, thank you for sharing your experience and feedback
which html5 history library do you use? There are https://github.com/kibu-australia/pushy and https://github.com/venantius/accountant at least, but both seem like their maintainers have a lot to do besides maintaining them :)
@si14 i just use secretary which comes bundled w/ re-frame (but I'm not doing anything extravagant )
@johanatan secretary is not built into re-frame
https://github.com/cursive-ide/cursive/issues/1549 give this issue a +1 if you use Cursive and would find the feature useful
@danielcompton How exactly do you propose that Cursive know what is a registration and what is a mere reference? keywords in Clojure are created upon first reference [and without some pretty sophisticated static analysis, who knows which reference is "first"]?
@mikethompson sorry, I meant built into the project template/generator that everyone is using for re-frame (initial statement revised to reflect this)