Clojurians
# om

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

anmonteiro 23:01:40

@dnolen: I managed to create an example of recursion within a union without any Om changes

anmonteiro 23:02:22

but it feels a little hacky, so I was wondering if you could look over it before actually considering merging it into the repo

tony.kay 23:14:11

@dnolen: om-523 is done. PR in place. Fixed AST stuff for joins, db->tree, and verified tree->db. Anything else I’m forgetting?

dnolen 23:28:27

@tony.kay: sweet will probably take a look on tomorrow or Monday - seems good off the top of my head

dnolen 23:29:00

@anmonteiro: perhaps add what you’re thinking to the issue to so we can track though process some place more visible?

anmonteiro 23:30:29

@dnolen: will do, after some cleanup

drusellers 02:18: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?

hugod 05:12: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?

vigneshm 07:31:31

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

thosmos 07:46:47

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

vigneshm 07:50: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

vigneshm 07:50:29

Is ‘Object’ the protocol here?

maackle 07:53:51

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

steveb8n 08:56: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

steveb8n 08:57: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)

hkjels 12:32:11

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

hkjels 13:00:52

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

smeister 13: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.

akiel 14:26: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?

smeister 14:32: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.

akiel 14:33:40

@smeister Thanks for the pointer to computed.

akiel 14:36: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.

akiel 15:35:35

@smeister: I added a comment to your gist.

logcat 16:44:49

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

akiel 18:31:06

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