New feature - development only
You can now navigate through the history of changes to the store with the below functions (in your DevTools console):
__RR__.back()
will go back to the state before the last store change.__RR__.forward()
will go forward again.__RR__.goTo(index)
will go to a particular index in the history.__RR__.getHistory()
will log out the entire history.__RR__.clearHistory()
clears the history.__RR__.setHistoryLimit(limit)
limits the number of store instances kept in history. Defaults to50
. Setting to0
disables time travel. Is stored in local storage.
If you update the store with initStore
or execute multiple updates within the batch
function callback, those changes are recorded as a single history event.