This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-12
Channels
- # admin-announcements (3)
- # beginners (13)
- # boot (52)
- # cbus (1)
- # cider (13)
- # cljs-dev (70)
- # cljsjs (16)
- # cljsrn (124)
- # clojure (129)
- # clojure-austin (3)
- # clojure-boston (2)
- # clojure-russia (238)
- # clojure-sg (3)
- # clojurescript (119)
- # cursive (18)
- # datomic (22)
- # editors-rus (2)
- # events (1)
- # hoplon (160)
- # jobs (1)
- # jobs-rus (8)
- # ldnclj (31)
- # ldnproclodo (1)
- # lein-figwheel (4)
- # leiningen (8)
- # off-topic (3)
- # om (335)
- # onyx (29)
- # re-frame (15)
- # reagent (12)
- # robots (1)
- # yada (19)
hi people, re-frame version of flux-challenge has been merged: https://github.com/staltz/flux-challenge/tree/master/submissions/jelz
Can I hook a function up such that it looks at the changes an event effected to the db (or is about to) and possibly adds more changes to the db? It's important that I have the old db as well as the new db.
I guess I could hook up a middleware, similar to debug, which outputs the diff to the console.
I'd take inspiration from existing middleware like on-change
and enrich
Perhaps they do what you need, or perhaps you write your own
@gregg if I have a button, how can I make it stretch? It does not have :size
... wrapping it in a box does not work for me, but maybe I am doing something wrong
@richiardiandrea: use :style
to add the necessary flexbox
right, I used:
:style {:-webkit-flex-flow "inherit"
:-flex-flow "inherit"
:-webkit-flex "1 0 90%"
:flex "1 0 90%"
}
do I need smth else?just to be sure, then I will debug what is wrong
oh, I can merge box/flex-child-style
@mikethompson: nope, it looks like the button is enclosed in a box -> https://github.com/Day8/re-com/blob/master/src/re_com/buttons.cljs#L49
and the box cannot be assigned a flex-flow
don't want to bother here,but I will open an issue, it is better to discuss here as everybody is busy