[Feature]: skip/replace multiple history entries of authentication flow #9114
Replies: 3 comments
-
| 
         According to the documentation https://reactrouter.com/docs/en/v6/examples/auth and common sense it is good practice to 'replace' login routes after success authentication. 
 Everything is clean if there is only one login route. Question: what to do if there are multiple routes in authentication flow? For example:  Issues: 
  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         One solution https://stackoverflow.com/a/73179042/1785926  | 
  
Beta Was this translation helpful? Give feedback.
-
| 
         If index property is available on History and Update then it makes it simple to do navigate between any history entries.  | 
  
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What is the new or updated feature that you are suggesting?
Original question: https://stackoverflow.com/questions/73176324/react-router-v6-how-to-skip-replace-multiple-history-entries-of-authentication
Why should this feature be included?
I think it could be a good feature or even documentation page because it is not clear how to skip/replace multiple history entries of authentication flow.
Beta Was this translation helpful? Give feedback.
All reactions