Public lifecycle, reload operation, and inspectable state for cljs-reload.
Public lifecycle, reload operation, and inspectable state for cljs-reload.
The browser evaluation primitive. Dynamic only to test CSS reload recovery.
The browser evaluation primitive. Dynamic only to test CSS reload recovery.
The reload primitive. Dynamic only to make compile/eval recovery testable.
The reload primitive. Dynamic only to make compile/eval recovery testable.
(create-session)Creates an independent reload lifecycle for one compiler and REPL environment.
Creates an independent reload lifecycle for one compiler and REPL environment.
(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.
(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.
(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.
(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.
(reload-session! session)Reloads changes through one session's compiler and REPL environment.
Reloads changes through one session's compiler and REPL environment.
(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.
(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.
(state)(state session)Returns the complete reload state as ordinary Clojure data.
Returns the complete reload state as ordinary Clojure data.
(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.
(stop-session! session)Stops one reload session without affecting any other active sessions.
Stops one reload session without affecting any other active sessions.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |