No useOutletContext? #8505
              
                Unanswered
              
          
                  
                    
                      justinwyllie
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| I've had the same problem, fixed it by upgrading react-router-dom from 6.0.2 to 6.2.1, also make sure you restart the server once you update the dependency. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
On this page in the docs: https://reactrouter.com/docs/en/v6/api#useoutletcontext there are come examples for useOutletContext. (To pass data from a parent component to one rendered by Outlet )
But useOutletContext is not available for export in react-router-dom 6.0.2.
Maybe I need to upgrade?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions