Liking cljdoc? Tell your friends :D

deepstate.action.axios


def-axios-actionclj/smacro

(def-axios-action key action-bindings-vec axios-action-map-or-axios-action)

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