What version of React Router are you using?
6.4.1
Steps to Reproduce
Pull this repository: https://github.com/jrakotoharisoa/react-router-sandbox
- Submit form with empty value to trigger error from action
- Enter a value in input and submit form
Expected Behavior
On the redirecting page, action data should be null
Actual Behavior
Action data on the redirecting page correspond to old action data returned when the form on previous page was in error.