-
Notifications
You must be signed in to change notification settings - Fork 432
Add a flag to url when see more is clicked #2437
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
base: main
Are you sure you want to change the base?
Conversation
@vyktoremario is attempting to deploy a commit to the Chainlink Labs Team on Vercel. A member of the Team first needs to authorize it. |
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.
I sync our fork, so you may want to rebase
const handleSeeMoreClick = () => { | ||
setSeeMore(true) | ||
const urlParams = new URLSearchParams(window.location.search) | ||
urlParams.set("showAll", "true") | ||
const newUrl = `${window.location.pathname}?${urlParams.toString()}` | ||
window.history.replaceState({ path: newUrl }, "", newUrl) | ||
} |
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.
Three points:
- I do not think we should show the parameter if someone clicks the show all manually, it is good to keep it hidden
- Add a comment on the "seeMore" logic, so that people know why it has been added (algolia crawler)
- Auto "show" also all the tokens in this page
const handleSeeMoreClick = () => { | ||
setSeeMore(true) | ||
const urlParams = new URLSearchParams(window.location.search) | ||
urlParams.set("showAll", "true") | ||
const newUrl = `${window.location.pathname}?${urlParams.toString()}` | ||
window.history.replaceState({ path: newUrl }, "", newUrl) | ||
} | ||
|
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.
Same as above, remove this and add comment
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.
All good now!
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
No description provided.