Re: om component state

2014-03-22 Thread Adrian Miron
Yes, a shared channel looks nice :-) https://github.com/amiron/tryouts/blob/master/src/cljs/tryouts/notifications.cljs#L11-L25

Re: om component state

2014-03-22 Thread Adrian Miron
Yes, a shared channel looks nice :-) https://github.com/amiron/tryouts/blob/master/src/cljs/tryouts/notifications.cljs#L11-L25 On Friday, March 21, 2014 6:09:57 PM UTC+2, David Nolen wrote: > > On Fri, Mar 21, 2014 at 11:45 AM, Adrian Miron > > > wrote: > >> >> >> On Thursday, March 20, 2014 1

Re: om component state

2014-03-21 Thread David Nolen
On Fri, Mar 21, 2014 at 11:45 AM, Adrian Miron wrote: > > > On Thursday, March 20, 2014 10:58:08 PM UTC+2, David Nolen wrote: >> >> >> If you don't pass app state data to this component then you don't need to >> bother with build at all. If you need a component that doesn't need app >> state but d

Re: om component state

2014-03-21 Thread Adrian Miron
On Thursday, March 20, 2014 10:58:08 PM UTC+2, David Nolen wrote: > > > If you don't pass app state data to this component then you don't need to > bother with build at all. If you need a component that doesn't need app > state but does need component local state you need to use om.core/graft.

Re: om component state

2014-03-20 Thread David Nolen
On Thu, Mar 20, 2014 at 5:57 AM, Adrian Miron wrote: > > I'm starting to use om in some projects and one of the first components I > had to build was a simple notification component. It shows a message at the > top of the page. Other components in the page will use it to display > messages when er

Re: om component state

2014-03-20 Thread Moritz Ulrich
Adrian Miron writes: > I'm starting to use om in some projects and one of the first components I > had to build was a simple notification component. It shows a message at the > top of the page. Other components in the page will use it to display > messages when errors happen. > > My idea was t