You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So for navigating we are using router.push instead of using Link from next/link. Isn't that suboptimal? I assume you'd prefer to have prefetching which comes for free with Link but is that even possible with CommandItem? Alternatively you can do router.prefetch I guess. See here for more details. I realise it isn't a big deal for this site (probably) but in other cases it might be.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I just checked the source code for the documentation page, i.e. for the command-menu. It looks like this
So for navigating we are using
router.push
instead of usingLink
fromnext/link
. Isn't that suboptimal? I assume you'd prefer to have prefetching which comes for free withLink
but is that even possible withCommandItem
? Alternatively you can dorouter.prefetch
I guess. See here for more details. I realise it isn't a big deal for this site (probably) but in other cases it might be.Beta Was this translation helpful? Give feedback.
All reactions