portal

https://github.com/djblue/portal
2020-09-14T14:43:07.044200Z

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.

2020-09-14T14:44:25.044300Z

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.

djblue 2020-09-14T16:55:56.044600Z

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?

2020-09-14T17:29:35.044900Z

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

2020-09-14T17:29:45.045100Z

Probably via reagent? Seems nicer than using it natively.