Liking cljdoc? Tell your friends :D

fulcro.history


add-or-incrementclj/s

(add-or-increment m k)

compressible-txclj/s

(compressible-tx tx)

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.
raw 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.
raw 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
raw 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
raw 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
raw 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
raw 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.
raw 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. 
raw 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.
raw docstring

is-timestamp?clj/s

(is-timestamp? t)

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.
raw docstring

max-tx-timeclj/s


(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]
raw docstring

new-historyclj/s

(new-history size)

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.
raw 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.
raw 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. 
raw 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.
raw 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.
raw docstring

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

× close