-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
frontend: add custom react-router hooks #1577
Conversation
} else { | ||
navPath = { pathname: to?.pathname, hash: to?.hash }; | ||
} | ||
const [path, search] = navPath.pathname.split("?"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any utility that would simplify parsing the URL rather than needing to split?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There isn't an easy way to split this since it's just the path. If I wanted to use a utility I would need to rely on the window location to get the hostname.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we also need to update the scaffolder to use this new package?
Description
Add custom react-router hooks to:
Testing Performed
manual and unit