Liking cljdoc? Tell your friends :D

deepstate.action.axios


axios-actioncljs

(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
sourceraw docstring

def-axios-actionclj/smacro

(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
sourceraw docstring

handle-axios-responsecljs

(handle-axios-response api-promise)

parse both axios API response branches

parse both axios API response branches
sourceraw docstring

parse-axios-error-responsecljs

(parse-axios-error-response r)

parse successful axios API responses

parse successful axios API responses
sourceraw docstring

parse-axios-success-responsecljs

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

parse errored axios API responses

parse errored axios API responses
sourceraw docstring

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

× close