You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I strongly suspect that cljs-ajax.core/ajax-request needs a :response-format key as seen in the example. Looking at the relevant lines in core.cljc it seems that there is no default response-format onto which it could fall back; it therefore always throws an error when not response-format is provided.
Possible fixes could be:
a) Providing the key in the map passed to :http-xhrio. However, my Clojure-Fu is not yet good enough to think of a way without clumsily including cljs.ajax.core in my re-frame handlers to access the various response-format-types..
b) Set some sort of default format and add it to the map.
Hope that helps! If you need anything further, let me know!
The text was updated successfully, but these errors were encountered:
Playing around with a simple example yields this error:
I strongly suspect that cljs-ajax.core/ajax-request needs a
:response-format
key as seen in the example. Looking at the relevant lines in core.cljc it seems that there is no default response-format onto which it could fall back; it therefore always throws an error when not response-format is provided.Possible fixes could be:
a) Providing the key in the map passed to
:http-xhrio
. However, my Clojure-Fu is not yet good enough to think of a way without clumsily including cljs.ajax.core in my re-frame handlers to access the various response-format-types..b) Set some sort of default format and add it to the map.
Hope that helps! If you need anything further, let me know!
The text was updated successfully, but these errors were encountered: