remix-run / history

Manage session history with JavaScript
MIT License
8.3k stars 960 forks source link

check if the history.forward() is available #976

Open omedvedew opened 1 month ago

omedvedew commented 1 month ago

I want to disable the button which triggers history.forward() (or history.go(1)) if the current location is the last in the history stack. How should I check this condition?