(axios-action key state action axios-promise-or-axios-handler-map)
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-or-axios-handler-map)
define an axios based async action - it's like an
deepstate.action.async/def-async-action
with parsing
of the axios responses to make things friendlier
use the ::action/axios
key of the axios-promise-or-axios-handler-map
to provide the form returning the axios promise
define an axios based async action - it's like an [[deepstate.action.async/def-async-action]] with parsing of the axios responses to make things friendlier use the `::action/axios` key of the `axios-promise-or-axios-handler-map` to provide the form returning the axios promise
(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