Last active
April 2, 2017 21:36
-
-
Save wilkerlucio/fc7e80d65c0b0bbe5e0244c273c6c98a to your computer and use it in GitHub Desktop.
ONCP
This file contains hidden or 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
(om/defui ^:once BasicChannelView | |
static om/IQuery | |
(query [_] [:channel/id {:channel/snippet [:channel/title]}])) | |
(om/defui ^:once ComplexChannelView | |
static om/IQuery | |
(query [_] [:channel/id | |
{:channel/snippet | |
[:channel/title | |
{:channel/thumbnails | |
[{:thumbnail/default [:thumbnail/url]}]}]} | |
{:channel/statistics [:channel/subscriber-count]}])) | |
(om/defui ^:once VideoComponent | |
static om/IQuery | |
(query [_] [:video/id | |
{:video/snippet | |
;; We want to query for both, what we place here? | |
[{:video/channel '?????}]}])) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment