Is there a useLocation() equivalent? #1008
Closed
manu-remsense
started this conversation in
General
Replies: 1 comment 1 reply
-
You can use |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys I've been trying to find an equivalent to react-router's useLocation, however I've found no such function exists in the current version. I've seen few posts from a year+ ago using this hook, but I assume it was removed now.
I was planning on using useLocation() in order to construct breadcrumbs component but haven't found a good way of doing it.
I have seen the breadcrumbs section where they are using react router context, but it seemed a little complicated compared to an old method of using useLocation and getting path segments,
Any help or advice would be appreciated, thanks 🙏 !
Beta Was this translation helpful? Give feedback.
All reactions