Liking cljdoc? Tell your friends :D

fulcro.history


add-or-incrementclj/s

(add-or-increment m k)
source

compressible-txclj/s

(compressible-tx tx)
source

compressible-tx?clj/s

(compressible-tx? tx)

Returns true if the given transaction is marked as compressible.

Returns true if the given transaction is marked as compressible.
sourceraw docstring

current-stepclj/s

(current-step history-nav)

Get the current history step from the history-nav. See history-navigator.

Get the current history step from the history-nav. See history-navigator.
sourceraw docstring

focus-endclj/s

(focus-end history-nav)

Returns a new history navigation with the focus on the prior step (or the first if already there). See history-navigator

Returns a new history navigation with the focus on the prior step (or the first if already there). See history-navigator
sourceraw docstring

focus-nextclj/s

(focus-next history-nav)

Returns a new history navigation with the focus on the next step (or the last if already there). See history-navigator

Returns a new history navigation with the focus on the next step (or the last if already there). See history-navigator
sourceraw docstring

focus-previousclj/s

(focus-previous history-nav)

Returns a new history navigation with the focus on the prior step (or the first if already there). See history-navigator

Returns a new history navigation with the focus on the prior step (or the first if already there). See history-navigator
sourceraw docstring

focus-startclj/s

(focus-start history-nav)

Returns a new history navigation with the focus on the prior step (or the first if already there). See history-navigator

Returns a new history navigation with the focus on the prior step (or the first if already there). See history-navigator
sourceraw docstring

gc-historyclj/s

(gc-history {:keys [:fulcro.history/max-size :fulcro.history/history-steps]
             :as history})

Returns a new history that has been reduced in size to target levels.

Returns a new history that has been reduced in size to target levels.
sourceraw docstring

get-stepclj/s

(get-step {:keys [:fulcro.history/history-steps] :as history} tx-time)

Returns a step from the given history that has the given tx-time. If tx-time specifies a spot where there is a gap in the history (there are steps before and after), then it will return the earlier step, unless the latter was compressible, in which case it will return the step into which the desired spot was compressed.

Returns a step from the given history that has the given tx-time. If tx-time specifies a spot where there is a gap in the history
(there are steps before and after), then it will return the earlier step, unless the latter was compressible, in which case
it will return the step into which the desired spot was compressed. 
sourceraw docstring

history-navigatorclj/s

(history-navigator history)

Returns a navigator of history. Use focus-next, focus-previous, and current-step.

Returns a navigator of history. Use focus-next, focus-previous, and current-step.
sourceraw docstring

is-timestamp?clj/s

(is-timestamp? t)
source

last-tx-timeclj/s

(last-tx-time {:keys [:fulcro.history/history-steps] :as history})

Returns the most recent transition edge time recorded in the given history.

Returns the most recent transition edge time recorded in the given history.
sourceraw docstring

max-tx-timeclj/s

source

(nav-position history-nav)

Gives back navigation position as a pair [current-index count-of-steps]

Gives back navigation position as a pair [current-index count-of-steps]
sourceraw docstring

new-historyclj/s

(new-history size)
source

oldest-active-network-requestclj/s

(oldest-active-network-request {:keys [:fulcro.history/active-remotes]
                                :as history})

Returns the tx time for the oldest in-flight send that is active. Returns Long/MAX_VALUE if none are active.

Returns the tx time for the oldest in-flight send that is active. Returns Long/MAX_VALUE if none are active.
sourceraw docstring

ordered-stepsclj/s

(ordered-steps history)

Returns the current valid sequence of step times in the given history as a sorted vector.

Returns the current valid sequence of step times in the given history as a sorted vector.
sourceraw docstring

record-history-stepclj/s

(record-history-step {:keys [:fulcro.history/history-steps
                             :fulcro.history/active-remotes]
                      :as history}
                     tx-time
                     {:keys [:fulcro.history/tx] :as step})

Record a history step in the reconciler.

Record a history step in the reconciler. 
sourceraw docstring

remote-activity-finishedclj/s

(remote-activity-finished history remote tx-time)

Record that remote activity finished for the given remote at the given tx-time. Returns a new history.

Record that remote activity finished for the given remote at the given tx-time. Returns a new history.
sourceraw docstring

remote-activity-startedclj/s

(remote-activity-started history remote tx-time)

Record that remote activity started for the given remote at the given tx-time. Returns a new history.

Record that remote activity started for the given remote at the given tx-time. Returns a new history.
sourceraw docstring

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

× close