Skip to content

react-router disable/enable goForward button #3947

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

Closed
uragecz opened this issue Sep 26, 2016 · 1 comment
Closed

react-router disable/enable goForward button #3947

uragecz opened this issue Sep 26, 2016 · 1 comment

Comments

@uragecz
Copy link

uragecz commented Sep 26, 2016

How i can get know if there is any page, i can go forward ?? I want just disable/allow forward button. I am using this commands to go back/forward - browserHistory.goForward()and browserHistory.goBack()

@timdorr
Copy link
Member

timdorr commented Sep 26, 2016

You would need to store some extra information in location.state to track position within the stack. AFAIK, window.history doesn't have a "current stack location" kind of API.

@timdorr timdorr closed this as completed Sep 26, 2016
@lock lock bot locked as resolved and limited conversation to collaborators Jan 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants