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

fix: Show correct framework sidebar #161

Merged
merged 2 commits into from
Jan 27, 2024
Merged

fix: Show correct framework sidebar #161

merged 2 commits into from
Jan 27, 2024

Conversation

lachlancollins
Copy link
Member

@lachlancollins lachlancollins commented Jan 26, 2024

Currently, if you navigate to a framework route like /query/latest/docs/framework/vue/guides/ssr, but your previously selected framework (which gets saved in local storage) was a different framework (e.g. react), it will render the correct document, but the sidebar will show the local storage framework's options.

This hook prioritises the framework in the URL over the framework in local storage when choosing the sidebar docs to display.

Copy link

vercel bot commented Jan 26, 2024

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

Name Status Preview Comments Updated (UTC)
tanstack-com ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 27, 2024 1:27am

@TkDodo TkDodo merged commit ca98c58 into main Jan 27, 2024
4 checks passed
@TkDodo TkDodo deleted the fix-sidebar branch January 27, 2024 09:19
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.

2 participants