Skip to content
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

feat: persist chain through hash params #18

Merged
merged 2 commits into from
Dec 6, 2024
Merged

feat: persist chain through hash params #18

merged 2 commits into from
Dec 6, 2024

Conversation

voliva
Copy link
Contributor

@voliva voliva commented Dec 6, 2024

This PR improves the routing by keeping part of the state into the Location hash.

Most importantly, it persists the selected chain when navigating through the UI, and the idea is that different pages will be able to add more data into them, so that it works across refreshes and the URLs can be copied or shared.

Screen.Recording.2024-12-06.at.12.22.19.mov

Closes #5
Related to #11

@voliva voliva requested review from josepot and carlosala December 6, 2024 11:28
Copy link

vercel bot commented Dec 6, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
papi-console ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 6, 2024 11:28am

Copy link
Member

@josepot josepot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!!

@voliva voliva merged commit 59235cd into main Dec 6, 2024
2 checks passed
@voliva voliva deleted the vo-links branch December 6, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

persist selected chain on refresh
2 participants