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
Click Items (The latest item id is "fetched from the server" and the user redirected to that items page)
Click delete (A dialog appears)
Click ok (The dialog is "dismissed" and the user is redirected to the next items page. Replace is used so that when the user clicks back, they don't see the dialog again [they would see the deleted item again, but in a real world situation it would say the item has been deleted])
It appears the fact that the navigation was meant to be a "replace" is dropped because of the navigation guard. Either "replace" should naturally be inherited or navigation guards should provide extra context and state that the navigation was meant to be a "replace". For now you can workaround this by passing replace:true in the props but its quite nasty IMO
What is expected?
Pressing back after deleting an item should present with the previous item, not the previous item delete dialog.
What is actually happening?
The delete dialog of the previous item is being shown. This is because despite the dialog using a replace navigation, this isnt carried over into the navigation guard. The guard also lacks context as to whether it should have been a replace or not.
The text was updated successfully, but these errors were encountered:
Version
3.4.3
Reproduction link
https://jsfiddle.net/emcpoland/xb4kqLug/58/
Steps to reproduce
Click Items (The latest item id is "fetched from the server" and the user redirected to that items page)
Click delete (A dialog appears)
Click ok (The dialog is "dismissed" and the user is redirected to the next items page. Replace is used so that when the user clicks back, they don't see the dialog again [they would see the deleted item again, but in a real world situation it would say the item has been deleted])
It appears the fact that the navigation was meant to be a "replace" is dropped because of the navigation guard. Either "replace" should naturally be inherited or navigation guards should provide extra context and state that the navigation was meant to be a "replace". For now you can workaround this by passing
replace:true
in the props but its quite nasty IMOWhat is expected?
Pressing back after deleting an item should present with the previous item, not the previous item delete dialog.
What is actually happening?
The delete dialog of the previous item is being shown. This is because despite the dialog using a
replace
navigation, this isnt carried over into the navigation guard. The guard also lacks context as to whether it should have been a replace or not.The text was updated successfully, but these errors were encountered: