Skip to content

Commit a2edf36

Browse files
authored
Merge pull request #3301 from alphonsotran/unused-value-from-doc
Docs: unused value 'isRejected' in code snippet
2 parents d50f92b + eee558c commit a2edf36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/api/createAsyncThunk.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ If a thunk was cancelled, the result of the promise will be a `rejected` action
527527
So if you wanted to test that a thunk was cancelled before executing, you can do the following:
528528

529529
```ts no-transpile
530-
import { createAsyncThunk, isRejected } from '@reduxjs/toolkit'
530+
import { createAsyncThunk } from '@reduxjs/toolkit'
531531

532532
test('this thunk should always be skipped', async () => {
533533
const thunk = createAsyncThunk(

0 commit comments

Comments
 (0)