Fork me on GitHub
#om
<
2017-03-19
>
hlolli00:03:46

@raspasov you can do that in the callback function you pass to :send (in the reconceiler), I used a recursive go loop on timeout. Don't have to code on me, its not a om specific problem, but you may want to add the status of the callback into the global state so that all components are aware when the data has been succecfully received or declared failed.

raspasov00:03:00

@hlolli thank you, yes I know it’s not Om specific, and I know it can vary in different cases; but I think the approach you’re suggesting is a good general one

hlolli00:03:40

there are some methods in goog.XhrIo that can do this too, but in general, Im a fan of recurcion, Im a fan of recurcion.

nha13:03:31

@anmonteiro that could work thanks. - Do you know how to access that property afterwards? (cljs and clj)? This makes me think: is there a way to create an anonymous defui?

nha13:03:19

I tried (collect-statics Foo), this gives an error. But I don't know what dt stands for: https://github.com/omcljs/om/blob/168aa5ceab46563b24d84ce21061dede0993e255/src/main/om/next.cljc#L25

nha13:03:30

Ah just seeing the ui macro in the source.

foobar20:03:16

Why would a component have a nil reactKey?

fz00:03:13

You haven't set a key? 😬