Created
March 20, 2016 12:28
-
-
Save thiagofm/4db7ffce772b08167797 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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