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

Make history interface compatible with react-router #3697

Merged
merged 1 commit into from
Jan 16, 2020

Conversation

belka-ew
Copy link
Contributor

@belka-ew belka-ew commented Jan 10, 2020

Other notes:

Should fix #1910.
Making MemoryHistory.canGo optional is actually wrong, but I don't see another way to work around flow bugs.
All history/* modules can be probably moved to history, it would reduce duplication. But I added history anyway becase normally everything is exported from history.
Properties I removed from react-router-* don't belong to the generic Location interface.

@AndrewSouthpaw AndrewSouthpaw merged commit 45d63d6 into flow-typed:master Jan 16, 2020
@AndrewSouthpaw
Copy link
Contributor

Thanks!

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

Successfully merging this pull request may close these issues.

react-router's <Router> history prop expect properties missing from history's BrowserHistory
2 participants