Does anyone use this crap with typescript? How do you use NavigationGuardNext if it accepts nothing that is listed as param? #2538
-
        Why is this happening? I know this is more like a typescript issue, but i think this is very common scenario. How to solve this?  | 
  
Beta Was this translation helpful? Give feedback.
      
      
          Answered by
          
            posva
          
      
      
        Aug 14, 2025 
      
    
    Replies: 1 comment
-
| 
         You have to revisit the way to communicate in discussions my friend. It's not okay to start by a sentence like "does anyone use this crap". I'm locking the conversation because of this. The type error should give you more insights about which type is not working. BTW, use a  onBeforeRouteUpdate((to, from) => {
   return handleRoute(to)
}) | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
      Answer selected by
        posva
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
You have to revisit the way to communicate in discussions my friend. It's not okay to start by a sentence like "does anyone use this crap". I'm locking the conversation because of this.
The type error should give you more insights about which type is not working.
BTW, use a
returninstead ofnext, that's the old v3 version, it will be deprecated soon: