remix-run / history

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

Wrong action after clicking on Forward button in browser #943

Open sryze opened 2 years ago

sryze commented 2 years ago

When I click the -> / Go Forward button in a browser (Chrome 98 on macOS), the history listener function gets called with action = POP instead of PUSH, which is unexpected

history v5.2.0

Ash-KODES commented 2 years ago

Can I contribute for this issue?

airjp73 commented 2 years ago

I believe this is the intended behavior. See code comment here.

lilong7676 commented 2 years ago

So how did you solve the problem?