Liking cljdoc? Tell your friends :D

cljs-reload.core

Public lifecycle, reload operation, and inspectable state for cljs-reload.

Public lifecycle, reload operation, and inspectable state for cljs-reload.
raw docstring

*evaluate-js-fn*clj

The browser evaluation primitive. Dynamic only to test CSS reload recovery.

The browser evaluation primitive. Dynamic only to test CSS reload recovery.
sourceraw docstring

*load-file-fn*clj

The reload primitive. Dynamic only to make compile/eval recovery testable.

The reload primitive. Dynamic only to make compile/eval recovery testable.
sourceraw docstring

affectedclj

(affected)
(affected session)
source

changedclj

(changed)
(changed session)
source

changed-cssclj

(changed-css)
(changed-css session)
source

create-sessionclj

(create-session)

Creates an independent reload lifecycle for one compiler and REPL environment.

Creates an independent reload lifecycle for one compiler and REPL environment.
sourceraw docstring

current-sessionclj

(current-session)

Returns the most recently started reload session.

Explicit session values should be retained when more than one REPL is active.

Returns the most recently started reload session.

Explicit session values should be retained when more than one REPL is active.
sourceraw docstring

init!clj

(init! options)

Scans source and CSS paths without attaching to a REPL. Useful for inspection.

Scans source and CSS paths without attaching to a REPL. Useful for inspection.
sourceraw docstring

init-session!clj

(init-session! session
               {:keys [source-paths css-paths]
                :or {source-paths ["src"] css-paths []}})

Scans source and CSS paths into one session without attaching it to a REPL.

Scans source and CSS paths into one session without attaching it to a REPL.
sourceraw docstring

last-css-reloadclj

(last-css-reload)
(last-css-reload session)
source

last-errorclj

(last-error)
(last-error session)
source

last-reloadclj

(last-reload)
(last-reload session)
source

reload!clj

(reload!)
(reload! session)

Reloads changed CSS and changed project namespaces through a REPL.

With no argument, uses the most recently started session. Namespace dependents are recompiled in dependency order. Errors are recorded and returned without terminating the watcher thread.

Reloads changed CSS and changed project namespaces through a REPL.

With no argument, uses the most recently started session. Namespace
dependents are recompiled in dependency order. Errors are recorded and
returned without terminating the watcher thread.
sourceraw docstring

reload-orderclj

(reload-order)
(reload-order session)
source

reload-session!clj

(reload-session! session)

Reloads changes through one session's compiler and REPL environment.

Reloads changes through one session's compiler and REPL environment.
sourceraw docstring

start!clj

(start! options)
(start! options context)

Attaches cljs-reload to the current cljs.repl dynamic environment.

The two-arity form is the practical lifecycle seam used by cljs-reload.repl; context contains the already-created REPL environment, compiler atom, compiler/REPL options, and output streams.

Attaches cljs-reload to the current cljs.repl dynamic environment.

The two-arity form is the practical lifecycle seam used by
`cljs-reload.repl`; `context` contains the already-created REPL environment,
compiler atom, compiler/REPL options, and output streams.
sourceraw docstring

start-session!clj

(start-session! session
                options
                {:keys [repl-env compiler compiler-options] :as context})

Attaches one independent session to a specific REPL and compiler context.

Attaches one independent session to a specific REPL and compiler context.
sourceraw docstring

stateclj

(state)
(state session)

Returns the complete reload state as ordinary Clojure data.

Returns the complete reload state as ordinary Clojure data.
sourceraw docstring

stop!clj

(stop!)
(stop! session)

Stops a reload session. With no argument, stops the most recently started one.

Stops a reload session. With no argument, stops the most recently started one.
sourceraw docstring

stop-session!clj

(stop-session! session)

Stops one reload session without affecting any other active sessions.

Stops one reload session without affecting any other active sessions.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close