Liking cljdoc? Tell your friends :D

turbo.core


clear-cache!cljs

(clear-cache!)

Removes all entries from the Turbo Drive page cache. Call this when state has changed on the server that may affect cached pages.

Removes all entries from the Turbo Drive page cache. Call this when
state has changed on the server that may affect cached pages.
raw docstring

on-before-cache!cljs

(on-before-cache! callback)

Evaluate callback when the turbo:before-cache event is triggered.

Evaluate `callback` when the turbo:before-cache event is triggered.
raw docstring

on-before-fetch-request!cljs

(on-before-fetch-request! callback)

Evaluate callback when the turbo:before-fetch-request event is triggered.

Evaluate `callback` when the turbo:before-fetch-request event is triggered.
raw docstring

on-before-fetch-response!cljs

(on-before-fetch-response! callback)

Evaluate callback when the turbo:before-fetch-response event is triggered.

Evaluate `callback` when the turbo:before-fetch-response event is triggered.
raw docstring

on-before-render!cljs

(on-before-render! callback)

Evaluate callback when the turbo:before-render event is triggered.

Evaluate `callback` when the turbo:before-render event is triggered.
raw docstring

on-before-stream-render!cljs

(on-before-stream-render! callback)

Evaluate callback when the turbo:before-stream-render event is triggered.

Evaluate `callback` when the turbo:before-stream-render event is
triggered.
raw docstring

on-before-visit!cljs

(on-before-visit! callback)

Evaluate callback when the turbo:before-visit event is triggered.

Evaluate `callback` when the turbo:before-visit event is triggered.
raw docstring

on-click!cljs

(on-click! callback)

Evaluate callback when the turbo:click event is triggered.

Evaluate `callback` when the turbo:click event is triggered.
raw docstring

on-load!cljs

(on-load! callback)

Evaluate callback when the turbo:load event is triggered.

Evaluate `callback` when the turbo:load event is triggered.
raw docstring

on-render!cljs

(on-render! callback)

Evaluate callback when the turbo:render event is triggered.

Evaluate `callback` when the turbo:render event is triggered.
raw docstring

on-submit-end!cljs

(on-submit-end! callback)

Evaluate callback when the turbo:submit-end event is triggered.

Evaluate `callback` when the turbo:submit-end event is triggered.
raw docstring

on-submit-start!cljs

(on-submit-start! callback)

Evaluate callback when the turbo:submit-start event is triggered.

Evaluate `callback` when the turbo:submit-start event is triggered.
raw docstring

on-visit!cljs

(on-visit! callback)

Evaluate callback when the turbo:visit event is triggered.

Evaluate `callback` when the turbo:visit event is triggered.
raw docstring

preview-visible?cljs

(preview-visible?)

check if a preview is displayed from cache.

check if a preview is displayed from cache.
raw docstring

set-progress-bar-delay!cljs

(set-progress-bar-delay! delay-in-milliseconds)

Sets the delay after which the progress bar will appear during navigation, in milliseconds. The progress bar appears after 500ms by default.

Sets the delay after which the progress bar will appear during
navigation, in milliseconds. The progress bar appears after 500ms by
default.
raw docstring

visit!cljs

(visit! location)
(visit! location opts)

Performs an Application Visit to the given location with the specified opts

location : string (url or path)
opts     : {:action :advance | :replace}
Performs an Application Visit to the given `location` with the
specified `opts`

```
location : string (url or path)
opts     : {:action :advance | :replace}
```
raw docstring

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

× close