Skip to content
This repository was archived by the owner on Feb 11, 2021. It is now read-only.

Commit e2fc94e

Browse files
committed
In README, change 'comparator' to 'matcher'
'matcher' is a better term, since the functions don't really compare one thing to another, they just try to match on a desired state in some functional way.
1 parent 2fc2193 commit e2fc94e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ Redux State Triggers
77
redux-trigger is a Redux middleware which allows delayed dispatching of an action
88
based on a trigger state in the Redux store. Here's how it works:
99

10-
1. Dispatch a trigger (with action and state comparator function)
11-
2. The comparator function will be run every time the state is updated
12-
3. When the comparator function returns true, the trigger's action is dispatched
10+
1. Dispatch a trigger (with action and state matcher function)
11+
2. The matcher function will be run every time the state is updated
12+
3. When the matcher function returns true, the trigger's action is dispatched
1313

1414
## Why do it this way?
1515

0 commit comments

Comments
 (0)