Fork me on GitHub
#portal
<
2020-09-14
>
seeday14:09:07

Hey @djblue, was able to get my stuff running with the demo ui. I had originally tried to use portal as a library in my own project, but couldn't for the life of me get it to build/have its dependencies included correctly. Probably my inexperience with cljs build systems? Though I think having this exposed as a proper react component would be awesome for how I'd be using it.

seeday14:09:25

Also, do you have a high-level explanation on how promises and portal work together? I get how to use them together, but not quite why it's like that.

djblue16:09:56

The promise was an artifact of trying to emulate the async nature of client-server rpc. A proper api will remove this. Are you using react directly or reagent?

seeday17:09:35

Ah, and js has to be async on http requests. Neat macro though. Hadn't seen cljc tricks before.

seeday17:09:45

Probably via reagent? Seems nicer than using it natively.