Is there a way to get DataRouter Context Data? #10785
Unanswered
sowhatdoido
asked this question in
Q&A
Replies: 0 comments
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.
-
I'm looking to access the
router
object that gets returned bycreateBrowserRouter
and gets passed intoRouterProvider
.I found that I can combine react's
useContext
and react-router'sUNSAFE_DataRouterContext
to pull the data I need, but I wanted to check if there was an official hook or recommended methodology to achieve this?Beta Was this translation helpful? Give feedback.
All reactions