This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-17
Channels
- # aleph (3)
- # bangalore-clj (2)
- # beginners (76)
- # boot (37)
- # braid-chat (7)
- # business (1)
- # clara (1)
- # cljsrn (45)
- # clojure (36)
- # clojure-android (1)
- # clojure-austin (2)
- # clojure-dusseldorf (4)
- # clojure-spec (2)
- # clojure-uk (2)
- # clojurebridge-ams (4)
- # clojurescript (79)
- # clr (1)
- # community-development (5)
- # core-async (1)
- # cursive (4)
- # data-science (1)
- # funcool (3)
- # hoplon (3)
- # om (107)
- # om-next (6)
- # other-lisps (1)
- # overtone (1)
- # planck (2)
- # reagent (24)
- # rum (1)
- # specter (7)
- # yada (46)
how do I structure my app so that state and components are separated? on GH project page, state and components are defined in same file, so referencing each other is not a problem
cause ATM I have circular dependency where file with state needs to require components to render, but components need state file to get the state
I looked into re-frame
but I don't like that subscriptions are mixed into components
I don't know, maybe it is not that bad
Thanks anyway
components get data from parameters and not from the state and components can call actions but do not modify state directly
in re-frame, reg-sub -supplied function has 2 args, what's the second? I need to subscribe to changes of the specific key in map
what might be the reason for error Invalid arity: 1
on line https://github.com/YurySolovyov/eion/blob/master/src/eion/renderer/components.cljs#L17
Just a guess, but on line 12, you have ([...
and I suspect that should be […
instead
Yup, thanks, that was right
What's the best channel to ask about the Sente
library, do you think? I'm trying to make the most minimal example possible, so that noobs like myself will have an easier way in.
Maybe I should just open an issue to discuss.
That's the websockets lib, yeah? If it doesn't have its own channel I'd ask in #C03S1L9DN
Yeah, that's the one 🙂 clojurescript's probably a good place, thanks...although I may be getting the hang of it. I'll just send Peter my little tutorial when done
what’s a good strategy to host an arbitrary DOM component? case in point, I want to have a div bound to a vis.Network (http://visjs.org/)