Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9f02baf

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 render2. outerComponent.setFoo('BAR')3. outerComponent.setFoo('BAZ')Did I miss something?
1 parent6171bd3 commit9f02baf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎test/components/connect.spec.js‎

Lines changed: 1 addition & 1 deletion
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)

[8]ページ先頭

©2009-2025 Movatter.jp