Clojurians
#om
<
2016-01-03
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

drusellers00:01:17

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?

hugod03:01:53

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?

vigneshm05:01:31

What does ‘Object’ in (defui HelloWorld Object…) mean? What kind of language feature is that?

thosmos05:01:47

@vigneshm: it's a clojure thing. check out protocols and reify

vigneshm05:01:13

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

vigneshm05:01:29

Is ‘Object’ the protocol here?

maackle05:01:51

Object == the Javascript Object, so AFAIK it's not a ClojureScript thing at all

steveb8n06:01:25

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

steveb8n06:01:16

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)

hkjels10:01:11

@steveb8n: Great! First next-app I’ve seen with a working datomic backend :simple_smile:

hkjels11:01:52

@steveb8n: Up and running with devcards in seconds. I like it

smeister11:01:27

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.

akiel12:01:50

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?

smeister12:01:37

@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.

akiel12:01:40

@smeister Thanks for the pointer to computed.

akiel12:01:11

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.

akiel13:01:35

@smeister: I added a comment to your gist.

logcat14:01:49

Hi, can I set html attributes to component when I build it, but not inside render function?

akiel16:01:06

@logcat: As far aus I understand it, you generate everything HTML related inside the render function.

anmonteiro22:01:13

@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

artemyarulin23:01:47

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