I have the following component:
(defn- component [services owner]
(reify
om/IInitState
(init-state [_]
(println "init-state")
{:selected-service (:name (first services))
})
om/IRenderState
(render-state [_ state]
(println services)
(dom/div nil))
And I create it like this:
(om/build (service-info/create
(get-in app-state [:selected-domain :domain])
select-service-chan)
(get-in app-state[:selected-domain :services]))
init-state is only called the first time the above code is called. Is this
expected ? If it is, how can I completely destroy the component and start from
scratch ?
--
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.