-
Notifications
You must be signed in to change notification settings - Fork 35
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
🚧 Set list viewer and editor #163
Conversation
Your Render PR Server URL is https://ozone-staging-pr-163.onrender.com. Follow its progress at https://dashboard.render.com/web/srv-cr14eqrtq21c73bpa4tg. |
@@ -0,0 +1,9 @@ | |||
export const createSetPageLink = (queryParams: Record<string, string>) => { | |||
const url = new URL(window.location.href.replace(window.location.search, '')) |
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.
Does the base URL need to be dynamic like this? Could it look something like:
const searchParams = new URLSearchParams()
Object.entries({ tab: 'sets', ...queryParams }).forEach(([key, value]) => {
searchParams.set(key, value)
})
return `/base/page/path?${searchParams.toString()}`
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.
yeah there's at least one place where we want to navigate to a nested view while maintaining the parent view so this is the safest way of making sure that we don't lose parent view because of param change.
Screen.Recording.2024-09-19.at.20.58.45.mov