remix-run / history

Manage session history with JavaScript
MIT License
8.29k stars 961 forks source link

Add index property to BrowserHistory, HashHistory and corresponding Update #957

Open mahnunchik opened 2 years ago

mahnunchik commented 2 years ago

Add index property to BrowserHistory, HashHistory and corresponding Update object.

This makes it easy to calculate the delta between any history entries.

Related feature in react-router https://github.com/remix-run/react-router/discussions/9114