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(router): useRouter with types #987

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tylersayshi
Copy link
Contributor

I'd really like feedback here. I left my notes and thoughts in docs/use-router.mdx

Copy link

vercel bot commented Nov 5, 2024

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

Name Status Preview Updated (UTC)
waku ❌ Failed (Inspect) Nov 5, 2024 5:13am

@tylersayshi
Copy link
Contributor Author

If we want to lean into using nuqs, I’m thinking of building it in similar to how trpc uses react query as a shim

Something like nuqs.aboutPage.useQueryState(“age”)

The parser and key pair would be defined where the route config is defined (entries.tsx or getConfig)

Also, the default useQueryState from nuqs should work, but this would be for route level organization.

Still just early thoughts ofc

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