Skip to content

Commit b069d51

Browse files
committed
Docs: Enhance and correct selector memoization example in Essentials Part 6 (fixes #4820)
1 parent 9adc267 commit b069d51

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)