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
[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/NationalBankBelgium/stark/blob/master/CONTRIBUTING.md#got-a-question-or-problem
Current behavior
After navigating two or more times to the same current state in order to change the state parameters (dynamic transition), every single transition is kept in the Routing Service state history as a different transition. Then, calling the navigatToPrevious() once will not navigate to the previous page but to the previous transition of the current state, meaning that the navigateToPrevious() should be called as many times as dynamic transitions were made.
Expected behavior
Calling navigateToPrevious() once should navigate to the previous page regardless of whether the previous transition(s) where dynamic or not.
Minimal reproduction of the problem with instructions
Define two states A & B, state B has a dynamic parameter
Navigate to state A
-- _starkStateHistory = [A]
Navigate to state B
-- _starkStateHistory = [A, B]
I'm submitting a...
Current behavior
After navigating two or more times to the same current state in order to change the state parameters (dynamic transition), every single transition is kept in the Routing Service state history as a different transition. Then, calling the
navigatToPrevious()
once will not navigate to the previous page but to the previous transition of the current state, meaning that thenavigateToPrevious()
should be called as many times as dynamic transitions were made.Expected behavior
Calling
navigateToPrevious()
once should navigate to the previous page regardless of whether the previous transition(s) where dynamic or not.Minimal reproduction of the problem with instructions
-- _starkStateHistory = [A]
-- _starkStateHistory = [A, B]
navigateTo()
)-- _starkStateHistory = [A, B, B]
navigateToPrevious()
-- service tries to navigate to B instead of A, a second call to
navigateToPrevious()
will go back to state AWhat is the motivation / use case for changing the behavior?
Consistent "navigate to previous" functionality.
Environment
The text was updated successfully, but these errors were encountered: