Fork me on GitHub
#re-frame
<
2017-02-06
>
sandbags10:02:52

@pupeno only difference i can see is that I am still on CLJS 293 ... when you say doesn't properly reload the component you mean when the subscription it depends on changes the component does not get re-rendered?

Pablo Fernandez11:02:22

No, I mean during development when I change the code. The old implementation keeps on being displayed.

sandbags11:02:11

is the multi defined in the same namespace as the method? I wonder if the code implementing the multi is not being re-loaded and holding on to the old method definition?

sandbags11:02:35

(i've not looked into how multi's are actually implemented so perhaps this is not possible, but i raise anyway in case it jogs some thought)

murphybob15:02:16

@ggaillard thanks for the tips. For the record I "solved" my problem by removing the call to (rf/clear-subscription-cache!) from the method which figwheel was calling on reload. I sadly don't really understand why that's fixed things but it has so I'm sort of happy, but I dislike having a magical fix because it's not like that function is simply in the template to make it look pretty. So far I haven't figured out what defect this is gonna cause.... but I'm sure it will bite me in the arse at some point! Anyway for now, the spectre of infinite looping every time I make a code change has been warded off.

kishanov19:02:30

Question about re-com: when I’m using h-box, how do I make 1st child left aligned and 2nd child right aligned? (use case: imagine a header row, where title is on the left and menu with buttons on the right in the same row)

qqq20:02:04

@kishanov : isn't there a param flag for this?

kishanov20:02:48

@qqq I’m struggling with the fact that when I use either :aling :end or :justify :end for both child boxes they still stack up to the left. cannot find the analog of CSS’s float: right for the 2nd box

qqq20:02:34

is it possibl eto use: :align-self keyword optional equivalent to CSS style align-self. Used when a child must override the parent's align-items setting.

qqq20:02:43

then have one child align left, one align right?

qqq20:02:49

I recall this being possible, I just forgot how I did it

pesterhazy20:02:00

h-box uses flexbox under the hood, doesn't it?

pesterhazy20:02:07

why not just use flexbox directly

qqq20:02:42

1. I bleieve it uses flexbox. 2. I once read it's not recommended in that unless you do everything right, it may break assumptions that other re-com elements make

qqq20:02:59

i.e. I think re-com works due to interaction between various re-com elements

kishanov20:02:34

ha, :justify :between for the parent h-box did the trick

mikethompson20:02:09

Ignore, I was thinking vbox

kishanov20:02:56

It’s nice that documentation allows to find solutions by clicking all possible options in brute force manner and get the example which resembles what is needed

mikethompson20:02:05

I think you probably need to use :align-self on the children

mikethompson20:02:38

:start and :end

qqq20:02:49

is anyone using re-frame with electron? desktop gui dev might become fun for once

mikethompson20:02:06

Yep, we use it

qqq20:02:36

I was watching a youtube video of electron on cljs

qqq20:02:45

and was blown away when you can repl a nodejs desktop app

shader20:02:37

any good examples of generating events for re-frame from the server?

shader20:02:44

e.g. websockets or similar?

shader20:02:46

anybody used https://github.com/drapanjanas/pneumatic-tubes or something like it? seems like it might be a decent fit

qqq21:02:00

@mikethompson : I just got reagent + electron to work -- when using re-frame + electron, what database do you guys use for persistent storage?

danielcompton23:02:57

@qqq rethinkdb is on a server btw