Last active
August 2, 2016 21:39
-
-
Save Jannis/9c0e8efc9c6fc71547f0cc26ec3b06ce 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
(do | |
(om.next/defui | |
User | |
static | |
om.next/IQuery | |
(query | |
[this] | |
[({:user (om.next/get-query User)} '{:id ?user-id})])) | |
(def user (workflo.macros.view/factory User {})) | |
(workflo.macros.view/register-view! 'User {:factory user, :view User})) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment