Skip to content

Commit 7fa86d0

Browse files
committed
Fix 'invoke mapState every time props are changed if it has a second argument'
There are only three prop changes. 1. Initial render 2. outerComponent.setFoo('BAR') 3. outerComponent.setFoo('BAZ') Did I miss something?
1 parent 70fb380 commit 7fa86d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: test/components/connect.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ describe('React', () => {
490490
outerComponent.setFoo('BAR');
491491
outerComponent.setFoo('BAZ');
492492

493-
expect(invocationCount).toEqual(4);
493+
expect(invocationCount).toEqual(3);
494494
expect(propsPassedIn).toEqual({
495495
foo: 'BAZ'
496496
});

0 commit comments

Comments
 (0)