Liking cljdoc? Tell your friends :D

reacl-basics.actions.browser


cancel-animation-framecljs

(cancel-animation-frame id)
source

cancel-animation-framescljs

(cancel-animation-frames id)
source

clear-intervalcljs

(clear-interval id)

Returns an action that will clear the interval with the given id.

Returns an action that will clear the interval with the given id.
sourceraw docstring

clear-timeoutcljs

(clear-timeout id)

Returns an action that will clear the timeout with the given id.

Returns an action that will clear the timeout with the given id.
sourceraw docstring

go-backcljs

(go-back)

Returns an action that will instruct the browser to go one step back in its history.

Returns an action that will instruct the browser to go one step back in its history.
sourceraw docstring

intervalcljs

(interval target make-id-message ms message)

Returns an action that will send message to target every ms milliseconds. It will also send the message (make-id-message id) to it with an id that can be used to clear the timeout with clear-interval.

Returns an action that will send `message` to `target` every `ms`
milliseconds. It will also send the message `(make-id-message id)`
to it with an id that can be used to clear the timeout
with [[clear-interval]].
sourceraw docstring

interval*cljs

(interval* target make-id-message ms message-fn)
(interval* target make-id-message ms message-fn initial-state)

Returns an action that will call (message-fn state) which must yield a pair of a message and a new state, which is sent to target. Initially that will be repeated every ms milliseconds. It will also send the message (make-id-message id) to it with an id that can be used to clear the timeout with clear-interval.

Returns an action that will call `(message-fn state)` which must
yield a pair of a message and a new state, which is sent to
`target`. Initially that will be repeated every `ms`
milliseconds. It will also send the message `(make-id-message id)`
to it with an id that can be used to clear the timeout
with [[clear-interval]].
sourceraw docstring

next-tickcljs

(next-tick target message)

Returns an action that will send message to target immediately after the control goes back to the browser. Similar to a timeout with 0 milliseconds.

Returns an action that will send `message` to `target`
immediately after the control goes back to the browser. Similar to
a [[timeout]] with 0 milliseconds.
sourceraw docstring

reloadcljs

(reload)
(reload clear-cache?)

Returns an action that will instruct the browser to reload the page, optionally by clearing its caches before that.

Returns an action that will instruct the browser to reload the
page, optionally by clearing its caches before that.
sourceraw docstring

request-animation-framecljs

(request-animation-frame target make-id-message make-message)

Returns an action that will send (make-message timestamp) to target on the next animation frame, and (make-id-message id) with an id that can be used with cancel-animation-frame immediately.

Returns an action that will send `(make-message timestamp)` to
`target` on the next animation frame, and `(make-id-message id)`
with an id that can be used with `cancel-animation-frame`
immediately.
sourceraw docstring

request-animation-framescljs

(request-animation-frames target make-id-message make-message)

Returns an action that will repeatedly send (make-message timestamp) to target on every next animation frame, and (make-id-message id) with an id that can be used with cancel-animation-frames immediately.

Returns an action that will repeatedly send `(make-message timestamp)` to
`target` on every next animation frame, and `(make-id-message id)`
with an id that can be used with `cancel-animation-frames`
immediately.
sourceraw docstring

restart-timeoutcljs

(restart-timeout target prev-id make-id-message ms message)

Returns an action that tries to clear the timeout with the given prev-id, if not nil, and then starts a new timeout with the given args.

Returns an action that tries to clear the timeout with the given
`prev-id`, if not `nil`, and then starts a new [[timeout]] with the given args.
sourceraw docstring

timeoutcljs

(timeout target make-id-message ms message)

Returns an action that will send message to target after ms milliseconds. It will also send the message (make-id-message id) to it with an id that can be used to clear the timeout with clear-timeout.

Returns an action that will send `message` to `target` after `ms`
milliseconds. It will also send the message `(make-id-message id)`
to it with an id that can be used to clear the timeout
with [[clear-timeout]].
sourceraw docstring

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

× close