Fork me on GitHub
#fulcro
<
2018-09-25
>
baptiste-from-paris08:09:46

Hello friends, does any one has built an open-source fulcro project with an old plain RESThellAPI. I’d like to see pathom in action with fulcro to compare with plain parser dev.

claudiu08:09:37

@U2N9GDB1U Don't know about open-source rest with pathon but there is a fulcro video that shows off pathom https://youtu.be/gbrdnSsUerI?t=16m6s

currentoor22:09:47

@tony.kay i know you try not to make breaking changes to fulcro’s public API, does that include fulcro.client.network?

currentoor22:09:51

i need to make some xhr requests in a way that libraries like cljs-ajax and cljs-http are not able to handle

currentoor22:09:29

i could use goog.net.XhrIo, but it seems like you already have a nice cljs friendly wrapper for it

currentoor22:09:12

also, i’m only using it for CORS requests, nothing on the server

tony.kay22:09:48

no breaking changes…but why would you need to break anything?

tony.kay22:09:25

the new remotes support middleware on the client, which lets you completely morph the request and response.

currentoor22:09:25

also, i was reading the closure docs and they seem to suggest that it’s inefficient to create a new xhrio instance for every request https://developers.google.com/closure/library/docs/xhrio

currentoor22:09:40

which is what the static method does

currentoor22:09:56

and it seems like we’re doing that in fulcro too, despite using the instance method

currentoor22:09:54

i haven’t noticed it to be a bottleneck, but would you care for a PR that re-uses the xhrio instance?

currentoor22:09:43

then again we probably shouldn’t prematurely optimize…

currentoor23:09:46

you were right, using the middleware was easy