Liking cljdoc? Tell your friends :D

re-frame-request.events


ajax-xhrio-handlercljs

(ajax-xhrio-handler on-success on-failure xhrio [success? response])

ajax-request only provides a single handler for success and errors

ajax-request only provides a single handler for success and errors
sourceraw docstring

format-request-kw->fncljs

(format-request-kw->fn name {:keys [transit-write-handlers]})
source

format-response-kw->fncljs

(format-response-kw->fn name {:keys [transit-read-handlers]})
source

register-eventscljs

(register-events {:keys [start-interceptors done-interceptors reset-interceptors
                         request-interceptors transit-read-handlers
                         transit-write-handlers]
                  :or {start-interceptors []
                       done-interceptors []
                       reset-interceptors []
                       request-interceptors []
                       transit-read-handlers {}
                       transit-write-handlers {}}})
source

request->xhrio-optionscljs

(request->xhrio-options {:as request :keys [on-success on-failure]})

Formats the xhr options

Formats the xhr options
sourceraw docstring

request-donecljs

(request-done db [_ {:keys [name request-time error status]}])
source

request-resetcljs

(request-reset db [_ request-name])
source

request-startcljs

(request-start db [_ {:keys [name request-time]}])
source

track-request!cljs

(track-request! name request-time)

Kicks off the request tracking process

Kicks off the request tracking process
sourceraw docstring

wrap-failure!cljs

(wrap-failure! on-failure name request-time)

Wraps the passed in on-failure callback

Wraps the passed in on-failure callback
sourceraw docstring

wrap-progress!cljs

(wrap-progress! on-progress _ _)

Wraps progress event

Wraps progress event
sourceraw docstring

wrap-success!cljs

(wrap-success! on-success name request-time)

Wraps the passed in on-success callback

Wraps the passed in on-success callback
sourceraw docstring

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

× close