Skip to content

Commit 36e1a85

Browse files
committed
Update error message and errors.json
1 parent 8910e2b commit 36e1a85

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

errors.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@
2727
"25": "When using `fakeBaseQuery`, all queries & mutations must use the `queryFn` definition syntax.",
2828
"26": "Warning: Middleware for RTK-Query API at reducerPath \"\" has not been added to the store.\nYou must add the middleware for RTK-Query to function correctly!",
2929
"27": "Warning: Middleware for RTK-Query API at reducerPath \"\" has not been added to the store.\n You must add the middleware for RTK-Query to function correctly!",
30-
"28": "Cannot refetch a query that has not been started yet."
30+
"28": "Cannot refetch a query that has not been started yet.",
31+
"29": "`builder.addCase` cannot be called with an empty action type",
32+
"30": "`builder.addCase` cannot be called with two reducers for the same action type"
3133
}

packages/toolkit/src/tests/createSlice.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ describe('createSlice', () => {
250250
})
251251
slice.reducer(undefined, { type: 'unrelated' })
252252
}).toThrowErrorMatchingInlineSnapshot(
253-
`"addCase cannot be called with two reducers for the same action type"`
253+
'"`builder.addCase` cannot be called with two reducers for the same action type"'
254254
)
255255
})
256256

0 commit comments

Comments
 (0)