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
Hi Folks
I am implementing a heder component with an arrow to return no the previous page.
I am using the const navigate = useNavigate() hook and on the click navigate(-1)
Now I want to hide the arrow if the previous page in the history doesn’t exist.
But I don’t find a way to know that, any idea to do this?
Thanks in advance
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
-
Hi Folks
I am implementing a heder component with an arrow to return no the previous page.
I am using the const
navigate = useNavigate()
hook and on the clicknavigate(-1)
Now I want to hide the arrow if the previous page in the history doesn’t exist.
But I don’t find a way to know that, any idea to do this?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions