TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Om No! Trouble in paradise with ClojureScript and React.js

18 pointsby coffeescripterover 10 years ago

3 comments

swannodetteover 10 years ago
Rather than repeat my response to the solid criticism here I&#x27;ll link to the reddit conversation where I talk about some of the solutions and pending solutions <a href="https://www.reddit.com/r/Clojure/comments/2jq0cu/om_no_trouble_in_paradise_with_clojurescript_and/" rel="nofollow">https:&#x2F;&#x2F;www.reddit.com&#x2F;r&#x2F;Clojure&#x2F;comments&#x2F;2jq0cu&#x2F;om_no_troub...</a>
viksitover 10 years ago
I agree. I&#x27;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.<p>- 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&#x2F;goog is one. The rationale is that multiple roots aren&#x27;t good for you, but the alternative is to render your entire template within clojurescript code which can be a pain if you&#x27;re working with someone who thinks in html&#x2F;css.<p>- 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.<p>(It isn&#x27;t my intention to be <i>overtly</i> critical of a great library - I like it a lot. I&#x27;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.)<p>[1] <a href="https://github.com/swannodette/om/blob/master/examples/two_lists/src/core.cljs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;swannodette&#x2F;om&#x2F;blob&#x2F;master&#x2F;examples&#x2F;two_l...</a> [2] <a href="https://groups.google.com/forum/#!topic/clojurescript/WCz57-k8leY" rel="nofollow">https:&#x2F;&#x2F;groups.google.com&#x2F;forum&#x2F;#!topic&#x2F;clojurescript&#x2F;WCz57-...</a>
dangover 10 years ago
<a href="https://hn.algolia.com/?q=trouble+in+paradise+clojurescript#!/story/forever/0/trouble%20in%20paradise%20clojurescript" rel="nofollow">https:&#x2F;&#x2F;hn.algolia.com&#x2F;?q=trouble+in+paradise+clojurescript#...</a>