Skip to content

feat(docs): redirect to query instead change state#9

Open
SadS4ndWiCh wants to merge 1 commit into
isabellaherman:mainfrom
SadS4ndWiCh:feat/sync-docs-with-query
Open

feat(docs): redirect to query instead change state#9
SadS4ndWiCh wants to merge 1 commit into
isabellaherman:mainfrom
SadS4ndWiCh:feat/sync-docs-with-query

Conversation

@SadS4ndWiCh

Copy link
Copy Markdown

Summary

This patch adds tab navigation through query params instead of react state.

Changes

  • Remove currentDoc state
  • Calculate the currentDoc outside useEffect
  • Fetch content when searchParams changes
  • Use <Link> instead buttons to navigate between tabs

Misc

  • Move docs variable outside component

@vercel

vercel Bot commented Nov 9, 2025

Copy link
Copy Markdown
Contributor

@SadS4ndWiCh is attempting to deploy a commit to the isabellaherman's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant