Earlier on I thought this would be necessary to address ENG-11237. It turns out that it's not, but it's still a good idea to update.
We can't use 4.0.4 since it bumps to React 19, which causes this issue. I had to remove our React 19 Yarn resolutions since they were causing the same issue, which caused Redux Dev Tools to be broken (even before this diff). The React 19 Yarn resolutions were something I tried when investigating a solution to ENG-11240, but they did not turn out to resolve the issue and were not actually necessary, as confirmed by testing in the Test Plan below.
Depends on D15365