Liking cljdoc? Tell your friends :D

deepstate.action.axios


axios-action-handlercljs

(axios-action-handler key
                      state
                      action
                      axios-promise-fn
                      init-effects-fn
                      completion-effects-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
sourceraw docstring

def-axios-actioncljsmacro

(def-axios-action key bindings axios-promise completion-effects-map)
(def-axios-action key
                  bindings
                  axios-promise
                  init-effects-map
                  completion-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
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