This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
Guys it might be a silly question, but if I wanna use re-frame http-fx library, the :response-format
is mendatory. But I don’t wanna use JSON format, I communicate in EDN.
Is there any documentation or something I can read and write my own format-ter function if there is no any other?
Of course, I'd suggest looking at the implementation of ajax/json-response-format
- it's very straightforward.
Not entirely related, but unless you really have to use EDN, I would suggest using Transit. You end up with the same EDN but different things get sent over the wire, and the protocol is faster due to its reliance on JSON (or Msgpack).
Yeah, I was looking for it. Also, I don’t have any preferences, yet. I might wanna test it after the MVP implementation.
Oh, actually seems like you can simply require ajax.edn
and then use ajax.edn/edn-response-format
.
But I'd still recommend using Transit.
Can you link the project, please. I’m not sure but for a quite time, google is giving the strange results.
Google becomes crappier and crappier day by day, but official docs and source code never fail. :)
Yeah. I believe it had a nature but they are changing it harshly to catch the new era. Or, I just got bad with new internet content and can’t align my search texts with the content I wanna find. 😂