Skip to content

Commit

Permalink
Fix 'invoke mapState every time props are changed if it has a second …
Browse files Browse the repository at this point in the history
…argument'

There are only three prop changes.

1. Initial render
2. outerComponent.setFoo('BAR')
3. outerComponent.setFoo('BAZ')

Did I miss something?
  • Loading branch information
esamattis committed Sep 8, 2015
1 parent 6171bd3 commit 9f02baf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/components/connect.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ describe('React', () => {
outerComponent.setFoo('BAR');
outerComponent.setFoo('BAZ');

expect(invocationCount).toEqual(4);
expect(invocationCount).toEqual(3);
expect(propsPassedIn).toEqual({
foo: 'BAZ'
});
Expand Down

0 comments on commit 9f02baf

Please sign in to comment.