A list of future states, caused by undoing
A list of future states, caused by undoing
(redo-n n)redo n steps or until we run out of redos
redo n steps or until we run out of redos
(redos?)Returns true if redos exist, false otherwise
Returns true if redos exist, false otherwise
(store-now! explanation)Stores the value currently in app-db, so the user can later undo
Stores the value currently in app-db, so the user can later undo
(undo-config! new-config)Set configuration parameters for library.
Should be called on app startup.
Set configuration parameters for library. Should be called on app startup.
(undo-explanations)Returns a vector of undo descriptions, perhaps empty
Returns a vector of undo descriptions, perhaps empty
(undo-n n)undo n steps or until we run out of undos
undo n steps or until we run out of undos
(undoable)(undoable explanation)returns a side-effecting Interceptor, which stores an undo checkpoint in
:after processing.
If the :effect cotnains an :undo key, then use the explanation provided
by it. Otherwise, explanation can be:
db and event-vec.returns a side-effecting Interceptor, which stores an undo checkpoint in
`:after` processing.
If the `:effect` cotnains an `:undo` key, then use the explanation provided
by it. Otherwise, `explanation` can be:
- a string (of explanation)
- a function expected to return a string of explanation. It will be called
with two arguments: `db` and `event-vec`.
- a nil, in which case "" is recorded as the explanation
(undos?)Returns true if undos exist, false otherwise
Returns true if undos exist, false otherwise
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 |