You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
currently the back option is very naive as it tracks only the previous state and the current state and back sets the current state to the current state.
this means A -> B -> C (current state is C) and going back twice results in the current state being C again:
back C -> B
back B -> C
It would be better in this case if going back twice would result in current state A
a history implementation that uses a stack like construct instead of tracking only the current and previous state should be considered.
The text was updated successfully, but these errors were encountered:
currently the back option is very naive as it tracks only the previous state and the current state and back sets the current state to the current state.
this means A -> B -> C (current state is C) and going back twice results in the current state being C again:
It would be better in this case if going back twice would result in current state A
a history implementation that uses a stack like construct instead of tracking only the current and previous state should be considered.
The text was updated successfully, but these errors were encountered: