Here is the minimal example that triggers this error- Not sure if it is my own
fault or a glitch in the new IRenderState logic:
(ns foo.core
(:require [om.core :refer [IRenderState build root get-node]]
[om.dom :as dom :refer [div]]))
(defn line [data owner]
(reify IRenderState (render-state [_ state]
(div nil "aaaah"))))
(root {}
(fn [data owner]
(build line data))
(. js/document (getElementById "app")))
The exact error message in OM 0.3.0 is:
Uncaught TypeError: Cannot read property '__om_pending_state' of null
The error goes away if you either (1) swap in the IRender interface or (2)
refer to the om component directly from the root call, without an anonymous
function.
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/clojurescript.