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
The theme docs and code completion state that the router instance is exposed in enhanceApp() but it appears the router instance is actually a route instance, and doesn't conform to the Router interface.
Reproduction
Initialize a new project, then add the following code to enhanceApp():
console.log({ router })router.onAfterRouteChanged((to: string)=>{console.log(`changed to: ${to}`)})
Expected behavior
We should be able to interact with the router instance
Describe the bug
The theme docs and code completion state that the
router
instance is exposed inenhanceApp()
but it appears therouter
instance is actually aroute
instance, and doesn't conform to the Router interface.Reproduction
Initialize a new project, then add the following code to
enhanceApp()
:Expected behavior
We should be able to interact with the
router
instanceSystem Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: