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
You're right that the internal function has incorrect JSDocs, I think the behavior would be nice and will consider adopting it in v10 since it could be a breaking/unexpected behavior change.
I'm curious how you arrived at those JSDocs, because the actual documentation on i18n.nuxtjs.org and exposed composable JSDoc do not describe this behavior.
Oh, I wasn't aware of this being described in the old documentation.
I think this change may have been made due to some confusing behavior where the currentRoute is unset in some situations (like global middleware), in which case it would return undefined when no argument was provided. I'm not sure if this edge case was present in Nuxt 2 though 🤔
Environment
does not matter
Reproduction
getRouteBaseName
Describe the bug
The documentation states
Returns base name of current (if argument not provided) or passed in route.
but if no route is given the result is undefined.So please either adjust the documentation or the implementation.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: