This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-01-03
Channels
- # admin-announcements (91)
- # announcements (1)
- # beginners (5)
- # boot (228)
- # cljs-dev (9)
- # cljsrn (12)
- # clojars (13)
- # clojure (175)
- # clojure-art (6)
- # clojure-russia (46)
- # clojurescript (35)
- # core-matrix (62)
- # cursive (10)
- # datomic (5)
- # hoplon (119)
- # ldnclj (11)
- # leiningen (7)
- # mount (3)
- # om (21)
- # reagent (2)
- # slack-help (1)
- # spacemacs (1)
when using Om are people doing all client side HTML generation (or largely I guess) or is there any kind “isomorphic” generate HTML on the server then bind to Om on the client?
In om.next with a react native Navigator, I'm trying to change scene/screen in response to a click, but find I have to capture and rebinding *reconciler*
etc, which doesn't seem right. Should the navigation be done inside om/transact!
instead? or some other way?
What does ‘Object’ in (defui HelloWorld Object…) mean? What kind of language feature is that?
Oh yea, I’ve read about the use of protocols and reify in previous version of ‘om’. But can’t quite figure out how Object is used here
I’ve been testing building an om.next app using cljc to maximise testability. I’ve reached a point where it might help others. https://github.com/stevebuik/om-next-ideas
take a look and let me know what you think. It should help people who want a full client/server setup (especially if you use datomic)
I have a situation where a root component calls a transaction mutating some part of the state it doesn't have in it's query which a sub component asks for. The problem is that the mutation initiated by the root leads to a re-read with the sub components query. Yet the sub component does not re-render with the new app-state, although it's query contains a key mentioned in my transaction. See https://gist.github.com/SMeister/df825c11e958a26e741e.
Is it right that I can give a child component only props (or a subset of props) the parent component received itself? Especially I can’t just give a map?
@akiel You should use om/get-query to include the child query in the parent's query for props. If you want to pass on something else, you can use om/computed, see https://github.com/omcljs/om/wiki/Documentation-%28om.next%29#computed.
Are there any examples to do forms with input fields in om.next? I’m thinking about using a component for each input field doing all the validation and so on. I see only Davids Todo MVC example were he has one TodoItem Component which handles all the editing in local state.
Hi, can I set html attributes to component when I build it, but not inside render function?
@logcat: As far aus I understand it, you generate everything HTML related inside the render function.
@dnolen: the example I mentioned yesterday was wrong; I spent a little more time today with OM-543 and submitted https://github.com/omcljs/om/pull/562
Finally was able to finalise https://github.com/artemyarulin/om-next-cross-platform-template to some alpha state. If you are into cross-platform development (ios + android + browser) and om-next, check this out. Any feedback are very welcome