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
We have a bunch of back buttons in our app. By default, they direct to previous page, but if the user has landed directly on that page we direct them to the logical parent page instead. The code looks something like:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
We have a bunch of back buttons in our app. By default, they direct to previous page, but if the user has landed directly on that page we direct them to the logical parent page instead. The code looks something like:
However, since the latest react-router do not expose history I don't know how that is possible.
Beta Was this translation helpful? Give feedback.
All reactions