Replies: 1 comment
-
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.
-
Hey folks, FAQ has an answer for How do I access the history object outside of components if you are using
<BrowserRouter>
,<HashRouter>
,<MemoryRouter>
,<NativeRouter>
.I would like to use one of the routers that support the new v6.4 data APIs: https://reactrouter.com/en/main/routers/picking-a-router#using-v64-data-apis (like
createBrowserRouter
).Am I able to use
history
outside of React components withcreateBrowserRouter
etc. ?From looking at the source code I can't find any escape hatches to pass the history into these v6.4 route creation functions.
createRouter
is not exported from@remix-run/router
throughreact-router-dom
is it?Beta Was this translation helpful? Give feedback.
All reactions