Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Missing unstable_HistoryRouter in the docs #9437

Closed
Mikilll94 opened this issue Oct 10, 2022 · 3 comments
Closed

[Bug]: Missing unstable_HistoryRouter in the docs #9437

Mikilll94 opened this issue Oct 10, 2022 · 3 comments
Labels

Comments

@Mikilll94
Copy link

Mikilll94 commented Oct 10, 2022

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 Mikilll94 added the bug label Oct 10, 2022
@Jamison1
Copy link

Jamison1 commented Oct 17, 2022

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

@zoobot
Copy link

zoobot commented Nov 2, 2022

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!

@brophdawg11
Copy link
Contributor

Hey folks - I've got a more extensive explanation regarding direct usage of history/unstable_HistoryRouter over in #9422 (comment), 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants