You can have multiple modals target the same root DOM target -
om.core/root was designed for this. The accessing cursors outside the
render phase is not a problem specific to this discussion. Just don't
put cursors onto channels - deref before you put! onto a channel.
David
On Tue, Aug 26, 2014 a
Thanks, multiple roots works well for this. Being new to Om it simply didn't
occur to me.
I'll dig further into coordinating events with shared channels; it would be
interesting to come up with a pattern that works for multiple unrelated modals.
In the meantime I posted an updated example link
Om supports multiple roots obviating the need for a parent. Is there
any reason to not put all modals into a different root? As far as
communication seems like you could coordinate events via a :shared
channel.
HTH,
David
On Tue, Aug 26, 2014 at 11:03 AM, Ryan Brush wrote:
> Hello all,
>
> I'd l
Hello all,
I'd like to improve on a simple pattern for reusable modals in Om. The example
code linked below at [1] works, displaying a person details modal as expected.
However, it has some downsides. Specifically, the "person-details-modal"
component must be given the state of the higher-level
On Sunday, August 24, 2014 5:30:23 PM UTC+10, Yehonathan Sharvit wrote:
> I would like to catch exceptions that occur inside a go block. I need to
> catch the exceptions from outside the go block.
>
> I tried to write this piece of code but it didn't work. The exception was not
> caught.
>
> (t
I have it almost completely figured out. The only part left is handling
unauthorized/unauthenticated calls. Currently, they are forwarding to
'/api/login' which is not what I want. I just want them to return HTTP
401. I think that's an option, but I haven't figured it out yet.
Any ideas?
--
I agree that it should be a bug and it's bit me a few times too. Usually,
however, I don't find it to be a big deal in my workflow as I can see it in
my cljsbuild auto output (on a successful build the only output is
"compiling" and then the coloured success text so it's easy for me to see
if it lo