(compressible-tx? tx)
Returns true if the given transaction is marked as compressible.
Returns true if the given transaction is marked as compressible.
(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.
(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
(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
(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
(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
(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.
(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.
(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.
(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.
(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]
(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.
(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.
(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.
(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.
(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.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close