A complete minimal case would be useful thanks. David
On Mon, May 5, 2014 at 2:52 PM, Roger Gilliar <[email protected]>wrote: > I have the following component: > > (defn component [services owner] > (reify > > om/IInitState > (init-state [_] > {:selected-service nil}) > > om/IRenderState > (render-state [_ state] > (dom/div nil > (dom/span nil "Service auswählen:") > (dom/div #js {:id "services"} > (apply dom/ul #js {:id "serviceList"} > (build-service-list services > > (:selected-service state) > > owner))))))) > > Instead of {:selected-service nil}) in init-state I would like to write > > {:selected-service (:name (first services))} > > But that does not work since services is nil in init-state. Why ? > > -- > 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. > -- 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.
