Fork me on GitHub
#om
<
2016-12-20
>
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.

Lambda/Sierra18: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

Lambda/Sierra19: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

Joe R. Smith20: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.

Joe R. Smith20:12:49

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

Lambda/Sierra21:12:45

OK thanks anmonteiro

anmonteiro21:12:51

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

Joe R. Smith21:12:31

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

Joe R. Smith21:12:45

I should probably figure out this webpack thing, regardless. 🙂

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?