Fork me on GitHub
#re-frame
<
2015-11-12
>
jakub09:11:55

hi people, re-frame version of flux-challenge has been merged: https://github.com/staltz/flux-challenge/tree/master/submissions/jelz

mbertheau17:11:50

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.

mbertheau17:11:25

I guess I could hook up a middleware, similar to debug, which outputs the diff to the console.

mbertheau17:11:01

Or I use the enrich middleware directly!

mikethompson20:11:57

I'd take inspiration from existing middleware like on-change and enrich

mikethompson20:11:17

Perhaps they do what you need, or perhaps you write your own

richiardiandrea23:11:56

@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

mikethompson23:11:24

@richiardiandrea: use :style to add the necessary flexbox

richiardiandrea23:11:06

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?

richiardiandrea23:11:58

just to be sure, then I will debug what is wrong

richiardiandrea23:11:17

oh, I can merge box/flex-child-style

richiardiandrea23:11:22

and the box cannot be assigned a flex-flow

richiardiandrea23:11:47

don't want to bother here,but I will open an issue, it is better to discuss here as everybody is busy