[ClojureScript] Re: Question: Om, multimethod and local state

2014-08-02 Thread feng zhou
) And then use it like this: (om/build (get-entry-view (om/value person)) person) On Monday, July 21, 2014 12:33:42 AM UTC-7, feng zhou wrote: On Friday, July 18, 2014 2:02:54 AM UTC+10, Jarppe Länsiö wrote: I have this same problem. I thought multimethods would be great way

[ClojureScript] Re: Question: Om, multimethod and local state

2014-07-21 Thread feng zhou
On Friday, July 18, 2014 2:02:54 AM UTC+10, Jarppe Länsiö wrote: I have this same problem. I thought multimethods would be great way to render different views in simple page app, so I wrote something like this: (def app-state {:view :login}) (defmulti render-view (fn [app owner]