-
Notifications
You must be signed in to change notification settings - Fork 17
Fix bug that blocks plugin from using versions of React-Redux >= v6 #200
base: master
Are you sure you want to change the base?
Conversation
Choongkyu
commented
Apr 19, 2019
- Address bug described here: React-Redux 6.0.0 package breaks dispatch #166
- Update dependencies
|
Choong Kim seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for working on this.
I think it might be nice do this a non-breaking change.
One option for this might look something like:
- Change
react-reduxpeer dependency from5.xto5.x || 7.x - Make
contextTypes.storenon-required. - If
ReactReduxContextis exported fromreact-redux, use it, otherwise fall back tocontext.store(but in development, log a warning thatreact-redux@5is deprecated).
Then in the next major version, we can drop support for react-redux@5 entirely.
Thoughts?
|
All of that sounds great. I'll update to reflect how I understood your implementation advice. |
|
@rtsao What're your thoughts on including React 16.8 as a requirement so that EDIT: I decided against doing this in the interest of making this a non-breaking change. |
KevinGrandon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work here, but looks like a few linter and testing errors. Would you like to resolve these? I can also have our team try to take a look and use this PR as a starting point, but it might take a bit longer. Thanks for the work on this PR.
|
It seems this plugin already depends on [email protected], which has a peer dependency of React 16.8 already. This was changed in #196 So I suppose this breaking change was already made? cc @micburks |
|
I suppose the peer version should have just been relaxed to |
Thanks. I was able to find one linting issue which I resolved by disabling the console rule. However, I'm currently getting this page when I try to get more intel on the errors and was wondering how I might be able to remedy them. https://imgur.com/a/TqGn89Y |
Thanks for the updates. You can find a public build log here: http://uber-open-source-gate.herokuapp.com/buildkite_public_log?https://buildkite.com/uberopensource/fusion-plugin-rpc-redux-react/builds/374 I believe this should manifest locally with the |
…p. Refactor withRPCRedux to be functional stateless component
…with react redux 5 as well
…ate breaking changes around that.
|
Current error for browser tests is Were you able to see this with |
Codecov Report
@@ Coverage Diff @@
## master #200 +/- ##
=========================================
- Coverage 96.42% 50% -46.43%
=========================================
Files 2 2
Lines 28 40 +12
Branches 5 9 +4
=========================================
- Hits 27 20 -7
- Misses 0 18 +18
- Partials 1 2 +1
Continue to review full report at Codecov.
|
Thanks, Kevin! I wasn't able to see that error with yarn test. This is what I see: |
|
You might be able to reproduce this locally with the docker workflow. (This would be the same workflow Buildkite uses) |
I'm able to build just fine but get this message when trying to run yarn test with docker: |