This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-04
Channels
- # aleph (2)
- # beginners (80)
- # boot (18)
- # cider (6)
- # cljs-dev (14)
- # cljsrn (5)
- # clojure (114)
- # clojure-android (5)
- # clojure-dev (8)
- # clojure-greece (6)
- # clojure-italy (9)
- # clojure-russia (108)
- # clojure-uk (82)
- # clojurescript (158)
- # css (1)
- # cursive (21)
- # data-science (1)
- # datomic (66)
- # emacs (9)
- # ethereum (3)
- # fulcro (26)
- # graphql (7)
- # hoplon (25)
- # juxt (2)
- # keechma (34)
- # lein-figwheel (4)
- # leiningen (2)
- # off-topic (4)
- # om (5)
- # onyx (14)
- # parinfer (2)
- # pedestal (17)
- # planck (3)
- # portkey (14)
- # re-frame (23)
- # reagent (12)
- # ring (8)
- # rum (1)
- # shadow-cljs (506)
- # spacemacs (2)
- # vim (11)
- # yada (6)
@flyboarder oh, hmmm
i feel like :class
is becoming less and less useful (or rather, requiring more and more boilerplate) as my app gets more complex and i break components down into smaller pieces
so maybe this is more of a feature request than a bug
is it right to say that if we implement a multimethod that matches every namespace for :class
then you would no longer be able to BYO your own implementation?
and also, could we implement something that dispatches on :hoplon.bar/class
and :hoplon.foo/class
?
@thedavidmeister we could implement something that catches namespaces for class, I believe that would require keyword inheritance, another option is a new macro for the do! multimethod defattribute
perhaps?
could you give an example of what that would look like?
Yep, one minute, I'm on mobile right now
or even :class/foo
and :class/bar
maybe?
i don't know what would be more conventional
@thedavidmeister there are namespaced defaults for :html/* :css/* :attr/* :prop/* :svg/*
yes, so could class be one?
I’ll add one for the :class/*
set since this seems useful
nice, ping me when you do and i'll update the test for it
on an unrelated note, has anyone done anything like https://joshwcomeau.github.io/react-flip-move/examples/#/?_k=kmex6e with hoplon?
Not sure, could probably be wrapped tho
Also test passing again
i'll check out the tests
for the flip move thing i was thinking more about the technique than the library, as it seems to be for react
i think rearranging things is a weak point of hoplon atm, so it would be good to see what might be done there
@flyboarder class looks cool 🙂 i added a couple more tests, but it's all passing afaics
could you push to clojars?
@flyboarder @thedavidmeister this is awesome (the class stuff)
@thedavidmeister ill get around to pushing today