Re: [ClojureScript] Re: om (0.8alpha1) resolved cursor != contents of cursor

2014-11-08 Thread Colin Yates
James, thank you. That does help. My mental model of app-state being pure domain and view hierarchies effectively projecting their own structures is the thing to challenge. The approach, if I may generalise is by all means project off app-state but keep it alongside (e.g. through opts as you

Re: [ClojureScript] Re: om (0.8alpha1) resolved cursor != contents of cursor

2014-11-08 Thread jack james
I try to avoid these types of generalizations. There's nothing inherently wrong with decorating a cursor, and it will work fine in many scenarios. But when you need app-state data + some other data in an event handler, you'll need a different approach, because deref will only return the

Re: [ClojureScript] Re: om (0.8alpha1) resolved cursor != contents of cursor

2014-11-08 Thread Colin Yates
I see. Thanks again. On Saturday, 8 November 2014 16:56:09 UTC, jack james wrote: I try to avoid these types of generalizations. There's nothing inherently wrong with decorating a cursor, and it will work fine in many scenarios. But when you need app-state data + some other data in an