next.js
904908cf - docs(pages): update slug value for optional catch all routes (#64381)

Commit
1 year ago
docs(pages): update slug value for optional catch all routes (#64381) ## Why? When you do, → ``` const router = useRouter() console.log('[test] router =', router.query.slug) ``` the value of `router.query.slug` should be undefined in this instance. (screenshot from current docs) ![CleanShot 2024-04-13 at 00 18 14@2x](https://github.com/vercel/next.js/assets/28912696/6cd79b3e-9258-4fcb-8685-dc6fe4d336e8) it should be `slug: undefined`.
Author
Parents
Loading