Hacker News new | past | comments | ask | show | jobs | submit login
[dupe] Om No! Trouble in paradise with ClojureScript and React.js (getprismatic.com)
18 points by coffeescripter on Oct 20, 2014 | hide | past | favorite | 3 comments



Rather than repeat my response to the solid criticism here I'll link to the reddit conversation where I talk about some of the solutions and pending solutions https://www.reddit.com/r/Clojure/comments/2jq0cu/om_no_troub...


I agree. I've had a few troubles with Om, and while dnolen and the community have been super helpful on IRC and lists, there are some basic things that I personally felt trapped by.

- The inability to cleanly have om components co-exist with a static template, rather than having to render the entire thing using sablono or om/goog is one. The rationale is that multiple roots aren't good for you, but the alternative is to render your entire template within clojurescript code which can be a pain if you're working with someone who thinks in html/css.

- The API for IResolve is currently in super early alpha, and while there are some examples [1], one of the the recommended solutions [2] is to use NativeStore or Derive, which seems overkill for simpler use cases such as mine.

(It isn't my intention to be overtly critical of a great library - I like it a lot. I've used it to some extent and faced a bunch of issues, which I hope will get resolved over time as the APIs and design become more stable.)

[1] https://github.com/swannodette/om/blob/master/examples/two_l... [2] https://groups.google.com/forum/#!topic/clojurescript/WCz57-...





Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: