Liking cljdoc? Tell your friends :D

deepstate.action.axios


axios-actioncljs

(axios-action key action axios-promise-or-axios-action-map state)

perform an axios-action - an async-action with response parsing

perform an axios-action - an async-action with
response parsing
sourceraw docstring

def-axios-actionclj/smacro

(def-axios-action key
                  [state-bindings action-bindings]
                  axios-promise-or-axios-action-map)

define an axios based async action - it's just an async-action with a little parsing of the axios responses to make things friendlier

cf deepstate.action.async/def-async-action

use the ::action/axios key of the action-map to provide the form returning the axios promise

define an axios based async action - it's just an
async-action with a little parsing of the axios
responses to make things friendlier

cf `deepstate.action.async/def-async-action`

use the `::action/axios` key of the `action-map` to
provide the form returning the axios promise
sourceraw docstring

handle-axios-responsecljs

(handle-axios-response api-promise)

parse API response branches into data

parse API response branches into data
sourceraw docstring

parse-axios-error-responsecljs

(parse-axios-error-response r)
source

parse-axios-success-responsecljs

(parse-axios-success-response
  {data :data status :status content-type :content-type :as _r})
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close