Fork me on GitHub
#fulcro
<
2021-09-11
>
Jakub Holý (HolyJak)20:09:58

@tony.kay https://book.fulcrologic.com/#_writing_your_own_remote_implementation: > A remote is just a map. The map can contain anything you want, but MUST contain a :transmit! key whose value is a (fn [send-node] ). But according to my experiments and Fulcro's code https://github.com/fulcrologic/fulcro/blob/develop/src/main/com/fulcrologic/fulcro/networking/http_remote.cljs#L330 it actually takes two arguments:

(fn transmit! [{:keys [active-requests]} send-node] ...)
Is the book wrong?

tony.kay23:09:17

Code is authority...book could be outdated

👍 4