0
votes

The first time I open the app, the length of the history object (returned by the useHistory Hook) is 3.

On every further refresh, the length gets incremented. Why is that? Does this happen in production too?

Environment:

1

1 Answers

1
votes

I think you don't need to use react-router-dom and react-router together.

Use only react-router-dom, as react-router-dom & react-router-native uses react-router at core