Ah ok, I forgot that -- whatever you think is best.  If it works this way,
then great!


On Wed, Jun 4, 2014 at 11:32 AM, Logan Linn <notifications@github.com>
wrote:

> In src/om_tools/schema.cljs:
>
> > @@ -0,0 +1,13 @@
> > +(ns om-tools.schema
> > +  (:require-macros
> > +   [schema.macros :as sm])
> > +  (:require
> > +   [schema.core :as s]
> > +   [om.core :as om]))
> > +
> > +(sm/defschema Cursor (s/pred om/cursor?))
> > +
> > +(defn cursor
> > +  "Returns a schema to validate an Om cursor"
> > +  [schema]
> > +  (s/both Cursor schema))
>
> That might work, but it would need to know whether Om is currently
> rendering because you only deref when not rendering -- deref while
> rendering gives error IIRC. I'll investigate
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/Prismatic/om-tools/pull/8/files#r13402559>.
>