Re: [ClojureScript] om cursors and protocols

2014-07-29 Thread tal giat
On Tuesday, July 29, 2014 10:00:47 AM UTC-4, David Della Costa wrote: Hi Tal, I'm not positive this will fully answer your question, but here is a very simple example of how to extend MapCursor and call the extended type inside the render phase of a component.

Re: [ClojureScript] om cursors and protocols

2014-07-29 Thread Moritz Ulrich
Hi, My preferred solution for this issue is calling `om/value' on the cursor before passing it to non-ui parts of the application. You can also move that call into the functions that get called itself, as it's equal to the identitty-functions for non-cursors. The other (more hacky) solution is

[ClojureScript] om cursors and protocols

2014-07-28 Thread tal giat
How can I have an om cursor implement a protocol and then call that protocol method from an om component ? the problem is that I'm getting an error calling the protocol method because the type now is not the given type but om.core/MapCursor. -- Note that posts from new members are moderated