Use SameValue instead of === to check for dispatchAction equivalence by Jessidhia · Pull Request #14752 · facebook/react

This allows a Reducer/State that happens to hold a -0 or NaN to not bail out of the bail outs / incorrectly bail out. It's the same algorithm that is used to check the deps array in Effect/Memo...