Skip to content

Commit 62e96d5

Browse files
committed
remove note re: addMatcher order as it doesn't apply
1 parent 99c0c7f commit 62e96d5

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/toolkit/src/createSlice.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,6 @@ export interface ReducerHandlingContext<State> {
206206
* @remarks
207207
* If multiple matcher reducers match, all of them will be executed in the order
208208
* they were defined in - even if a case reducer already matched.
209-
* All calls to `builder.addMatcher` must come after any calls to `builder.addCase` and before any calls to `builder.addDefaultCase`.
210209
* @param matcher - A matcher function. In TypeScript, this should be a [type predicate](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#using-type-predicates)
211210
* function
212211
* @param reducer - The actual case reducer function.

0 commit comments

Comments
 (0)