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
routerobject that gets returned bycreateBrowserRouterand gets passed intoRouterProvider.I found that I can combine react's
useContextand react-router'sUNSAFE_DataRouterContextto 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