Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const location = useLocation()
- React.useEffect(() => {
- let routes = location.pathname.split("/").slice(2)
- routes[routes.length - 1] = joinName(userInfo) || "User Info"
- pageControl.overwriteBreadcrumbsRoutes(location.pathname, routes)
- }, [location, userInfo])
Advertisement
Add Comment
Please, Sign In to add comment