(axios-action-handler key state action axios-promise reaction-fn)
function to perform an axios-action - an async-action with
response parsing. invoked from expansions of the def-axios-action
macro
function to perform an axios-action - an async-action with response parsing. invoked from expansions of the `def-axios-action` macro
(def-axios-action key
[_state-bindings _async-action-state-bindings _action-bindings
:as bindings]
axios-promise
effects-map)
define an axios based async action - it's like an
deepstate.action.async/def-async-action
with parsing
of the result of axios-promise
to make things friendlier
define an axios based async action - it's like an [[deepstate.action.async/def-async-action]] with parsing of the result of `axios-promise` to make things friendlier
(handle-axios-response api-promise)
parse both axios API response branches
parse both axios API response branches
(parse-axios-error-response r)
parse successful axios API responses
parse successful axios API responses
(parse-axios-success-response
{data :data status :status content-type :content-type :as _r})
parse errored axios API responses
parse errored axios API responses
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close