Skip to content

Instantly share code, notes, and snippets.

@Jannis
Last active August 2, 2016 21:39
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 Jannis/9c0e8efc9c6fc71547f0cc26ec3b06ce to your computer and use it in GitHub Desktop.
Save Jannis/9c0e8efc9c6fc71547f0cc26ec3b06ce to your computer and use it in GitHub Desktop.
(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