Fork me on GitHub
#fulcro
<
2022-03-10
>
Quentin Le Guennec15:03:41

Hello, where can I find resources on how to handle promises in fulcro? My web app is speaking to public apis without a clojure backend.

mruzekw16:03:23

I would look into integrating directly with Fulcro's network layer by creating a http-remote and configuring it with request and response middleware. That way you can let Fulcro deal with the low-level networking. https://book.fulcrologic.com/#_creating_a_remote

dvingo16:03:09

I put together a small js only fulcro app that talks to wikipedia's api, this uses pathom resolvers that return promises: https://github.com/dvingo/pathom-client-wikipedia/blob/master/src/main/dv/pathom_wp/client/application.cljs