Skip to content

Commit a5225bf

Browse files
authored
Merge pull request #4821 from synwix/docs/fix-part6-selector-example
Docs: Enhance and correct selector memoization example in Essentials Part 6
2 parents 9adc267 + b069d51 commit a5225bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tutorials/essentials/part-6-performance-normalization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -899,7 +899,7 @@ selectPostsByUser(state1, 'user1')
899899
// Output selector runs, because `userId` changed
900900
selectPostsByUser(state1, 'user2')
901901

902-
dispatch(reactionAdded())
902+
dispatch(fetchUsers())
903903
const state2 = getState()
904904
// Output selector does not run, because `posts` and `userId` are the same
905905
selectPostsByUser(state2, 'user2')

0 commit comments

Comments
 (0)