Skip to content

Instantly share code, notes, and snippets.

@bonface221
Last active July 18, 2024 11:19
Show Gist options
  • Save bonface221/2eb4218e3eae6930fa233f5f6d7cc452 to your computer and use it in GitHub Desktop.
Save bonface221/2eb4218e3eae6930fa233f5f6d7cc452 to your computer and use it in GitHub Desktop.
NextJS - Appending a query param to a dynamic route

Just add more param to current router then push itself

` // ... const { query } = useRouter(); // ...

`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment