(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.
(on-before-cache! callback)
Evaluate callback
when the turbo:before-cache event is triggered.
Evaluate `callback` when the turbo:before-cache event is triggered.
(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.
(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.
(on-before-render! callback)
Evaluate callback
when the turbo:before-render event is triggered.
Evaluate `callback` when the turbo:before-render event is triggered.
(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.
(on-before-visit! callback)
Evaluate callback
when the turbo:before-visit event is triggered.
Evaluate `callback` when the turbo:before-visit event is triggered.
(on-click! callback)
Evaluate callback
when the turbo:click event is triggered.
Evaluate `callback` when the turbo:click event is triggered.
(on-load! callback)
Evaluate callback
when the turbo:load event is triggered.
Evaluate `callback` when the turbo:load event is triggered.
(on-render! callback)
Evaluate callback
when the turbo:render event is triggered.
Evaluate `callback` when the turbo:render event is triggered.
(on-submit-end! callback)
Evaluate callback
when the turbo:submit-end event is triggered.
Evaluate `callback` when the turbo:submit-end event is triggered.
(on-submit-start! callback)
Evaluate callback
when the turbo:submit-start event is triggered.
Evaluate `callback` when the turbo:submit-start event is triggered.
(on-visit! callback)
Evaluate callback
when the turbo:visit event is triggered.
Evaluate `callback` when the turbo:visit event is triggered.
(preview-visible?)
check if a preview is displayed from cache.
check if a preview is displayed from cache.
(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.
(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} ```
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close