Clojurians
#om
<
2016-12-20
>

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

levitanong00:12:14

Hmmm… I realize I could use tree->db to pre-normalize the data.

danielstockton08:12:17

Is anyone handling file uploads in an om.next app? Interested in hearing your strategies.

danielstockton09:12:55

This is what my send function is starting to look like. I split the query into two separate requests so I can send uploads as multipart. @drcode @dzannotti I think this has similarities to how you are dealing with REST endpoints.

stuartsierra18:12:40

Is it reasonable to use just defui and other rendering-related functionality from Om.next without the rest of it?

anmonteiro18:12:27

@stuartsierra I've done that myself in projects that didn't use queries

stuartsierra19:12:29

If I'm just rendering, do I have to use the Om.next reconciler?

anmonteiro20:12:26

@stuartsierra: depends. If you have global state you'll need to construct a reconciler with it

anmonteiro20:12:02

Well, in fact you could make do with passing just props to a Om Next factory, but your components wouldn't re-render. You'd need to set up a watch on an atom to re-render manually

solussd20:12:07

What’s the best approach to consuming NPM packages for my Om.next-based clojurescript app? lein-npm? webpack (idk how this works)? npm is a tire-tire afaict.

solussd20:12:49

also, I don’t suppose there’s a way to rope npm deps into a clojurescript closure compiler advanced compile.

stuartsierra21:12:45

OK thanks anmonteiro

anmonteiro21:12:51

@solussd use Webpack to create a UMD module that you include via :foreign-libs compiler option

solussd21:12:31

@anmonteiro cool- any example projects/blog posts you’d recommend?

solussd21:12:45

I should probably figure out this webpack thing, regardless. :slightly_smiling_face:

anmonteiro21:12:54

I think I found that whole mailing list thread useful

ag23:12:24

does [org.omcljs/om “1.0.0-alpha47”] break when used with `cljsjs/react “15.4.x”, or am I doing something wrong?