react-router icon indicating copy to clipboard operation
react-router copied to clipboard

[Bug]: Missing unstable_HistoryRouter in the docs

Open Mikilll94 opened this issue 3 years ago • 1 comments

What version of React Router are you using?

6.4.1

Steps to Reproduce

Docs for v6.4 are missing unstable_HistoryRouter.

https://reactrouter.com/en/main/components/form

In v6.3 docs unstable_HistoryRouter was described.

Expected Behavior

unstable_HistoryRouter should be described in the docs.

Actual Behavior

There is completely no information about unstable_HistoryRouter in the docs.

Mikilll94 avatar Oct 10 '22 18:10 Mikilll94

Looks like its no longer supported as of 6.4.0

Screen Shot 2022-10-16 at 3 29 01 PM

https://reactrouter.com/en/6.4.0-pre.14/routers/history-router

Jamison1 avatar Oct 17 '22 01:10 Jamison1

Can you document what the migration would look like to workaround this removal? We pass history to routes in other modules. It's a huge/breaking change across a bunch of our repos if we update to V6.

Others having the same issues https://stackoverflow.com/questions/69871987/react-router-v6-navigate-outside-of-components

Getting this error with typescript. Property 'history' does not exist on type 'IntrinsicAttributes & RouterProps'. ?

Thanks!

zoobot avatar Nov 02 '22 01:11 zoobot

Hey folks - I've got a more extensive explanation regarding direct usage of history/unstable_HistoryRouter over in https://github.com/remix-run/react-router/issues/9422#issuecomment-1301182219, so I'm going to close this one out. unstable_HistoryRouter is still usable but remains undocumented because it's unstable and we're encouraging folks to use RouterProvider moving forward which has a different (but still unstable) way to navigate from outside the react tree.

brophdawg11 avatar Nov 02 '22 20:11 brophdawg11