Skip to content

Instantly share code, notes, and snippets.

@thiagofm
Created March 20, 2016 12:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thiagofm/4db7ffce772b08167797 to your computer and use it in GitHub Desktop.
Save thiagofm/4db7ffce772b08167797 to your computer and use it in GitHub Desktop.
(defui Code
static om/IQueryParams
(params [this]
{:language "ruby"})
static om/IQuery
(query [this]
'[(:remote/github-repositories {:language ?language})])
Object
(render [this]
(let [github-repositories (:language (om/get-computed this))]
(om/set-query! this {:query '[(:remote/github-repositories {:language "prolog"})]})
(dom/div nil github-repositories))))
(def code-comp (om/factory Code))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment