This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-02-06
Channels
- # aleph (2)
- # aws (3)
- # bangalore-clj (3)
- # beginners (119)
- # boot (263)
- # cider (13)
- # cljs-dev (16)
- # clojars (2)
- # clojure (114)
- # clojure-austin (1)
- # clojure-chicago (1)
- # clojure-finland (1)
- # clojure-france (24)
- # clojure-italy (6)
- # clojure-russia (28)
- # clojure-serbia (7)
- # clojure-spain (1)
- # clojure-spec (89)
- # clojure-uk (139)
- # clojurescript (216)
- # community-development (3)
- # core-async (135)
- # css (2)
- # cursive (31)
- # datomic (44)
- # emacs (15)
- # hoplon (2)
- # jobs (3)
- # lein-figwheel (14)
- # leiningen (2)
- # lumo (21)
- # off-topic (16)
- # om (7)
- # om-next (1)
- # onyx (53)
- # perun (9)
- # planck (15)
- # portland-or (29)
- # protorepl (2)
- # re-frame (32)
- # reagent (8)
- # ring-swagger (22)
- # rum (51)
- # spacemacs (4)
- # untangled (2)
@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?
No, I mean during development when I change the code. The old implementation keeps on being displayed.
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?
(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)
@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.
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)
@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
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.
h-box uses flexbox under the hood, doesn't it?
why not just use flexbox directly
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
@kishanov See the examples: http://re-demo.s3-website-ap-southeast-2.amazonaws.com/#/gap
Ignore, I was thinking vbox
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
I think you probably need to use :align-self
on the children
:start
and :end
Yep, we use it
anybody used https://github.com/drapanjanas/pneumatic-tubes or something like it? seems like it might be a decent fit
@mikethompson : I just got reagent + electron to work -- when using re-frame + electron, what database do you guys use for persistent storage?
rethinkdb
@qqq rethinkdb is on a server btw