-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update react-redux to use forwardRef syntax #4216
Conversation
React-Redux 6.0 beta is now available, so this will need to be pushed forward soon. Please see https://github.com/reduxjs/react-redux/releases/tag/v6.0.0-beta.1 for our release notes, and reduxjs/react-redux#1000 for the actual changes . |
Hmm. The tests look to be completely busted for everything related to refs. @mvanlonden , got time to revisit this? |
I'm ready to merge when the tests pass. Seems like |
I briefly tried cloning the repo and pulling this PR. The initial issue, as Erik said, is that the package needs to have the React-Redux version bumped. After I did that, though, I got about 80 test failures, for a variety of reasons, and I'm not comfortable with this codebase to be able to dig into them myself. Hopefully someone can dig into things soon. |
Took a quick pass but ran into the test failures. This was for compatibility with reduxjs/react-redux#995 but might not matter since the other PR also uses forwarded refs? I'm also not very familiar with this codebase and am migrating to a new form library. |
PR 1000 was what we finally went with, but they should have ultimately had the same public API. If I upgrade the peer dep and dev dep to
Lots of stuff like that. |
Oh. Dear. I just realized that Redux-Form uses legacy React context internally. That may explain why things appear to be very broken atm - I've seen a bunch of issues filed against React saying bad things happen when you mix old and new context. Well, I tried poking around at the tests, but I think this is going to require a lot more work than I'd initially thought. @erikras , this may require some focused attention from you once you're back from your vacation. (Also, today's lovely discovery: WebStorm doesn't recognize tests correctly when they're defined in nested functions, which is how they're done in this repo so they can be parameterized. Oops.) |
I'm switching to formik. 👋 |
Back from vacation. Working on this... |
@erikras Do we have any rough time estimate on this? |
Put in about six hours yesterday. Gonna throw some more at it today. Lots of broken tests still. End of this week, early next week? |
@erikras , hi. The problem was fixed? |
It's not my issue @pogran 😄 |
Published fix in |
Thanks @erikras. Fix works well so far! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
WIP DNM
Proposal for react-redux v6 contains breaking changes. This PR is a WIP to address those changes.
reduxjs/react-redux#995
cc @markerikson