Skip to content
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

Remove asnyc-connect (redux-connect) and add react-router-redux #3974

Merged
merged 1 commit into from
Nov 27, 2017
Merged

Remove asnyc-connect (redux-connect) and add react-router-redux #3974

merged 1 commit into from
Nov 27, 2017

Conversation

willdurand
Copy link
Member

@willdurand willdurand commented Nov 24, 2017

Fix mozilla/addons#9546
Fix mozilla/addons#10365


This PR completely removes redux-async-connect/redux-connect and adds react-router-redux instead to keep backward compatibility. (PS: it is the road to React 16)

@codecov-io
Copy link

codecov-io commented Nov 24, 2017

Codecov Report

Merging #3974 into master will increase coverage by 0.06%.
The diff coverage is 82.35%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    mozilla/addons-frontend#3974      +/-   ##
==========================================
+ Coverage   96.29%   96.35%   +0.06%     
==========================================
  Files         185      185              
  Lines        3884     3869      -15     
  Branches      788      787       -1     
==========================================
- Hits         3740     3728      -12     
+ Misses        124      121       -3     
  Partials       20       20
Impacted Files Coverage Δ
src/disco/store.js 100% <ø> (ø) ⬆️
src/core/utils/index.js 100% <ø> (ø) ⬆️
src/amo/store.js 100% <ø> (ø) ⬆️
src/core/api/index.js 100% <ø> (ø) ⬆️
src/core/constants.js 100% <ø> (ø) ⬆️
src/core/client/base.js 0% <0%> (ø) ⬆️
src/core/reducers/errorPage.js 100% <100%> (ø) ⬆️
src/core/store.js 100% <100%> (ø) ⬆️
src/core/server/base.js 59.41% <83.33%> (+0.21%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d38a096...470348a. Read the comment docs.

@willdurand willdurand mentioned this pull request Nov 24, 2017
@tofumatt tofumatt self-requested a review November 24, 2017 22:18
Copy link
Contributor

@tofumatt tofumatt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I looked at this a few times (over the weekend and now) and compared it with my old branch. Everything looks covered and things work! Tested locally with SSR on and things to work. I say we :shipit: 😄

@@ -21,23 +24,29 @@ describe('errorPage reducer', () => {
expect(state).toEqual(initialState);
});

describe('REDUX_CONNECT_END_GLOBAL_LOAD', () => {
describe('LOCATION_CHANGE', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so much nicer anyway 👍

@tofumatt tofumatt merged commit 4c4762e into mozilla:master Nov 27, 2017
@willdurand willdurand deleted the remove-asyncconnect branch November 27, 2017 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants