Skip to content

Commit

Permalink
Merge pull request #3301 from alphonsotran/unused-value-from-doc
Browse files Browse the repository at this point in the history
Docs: unused value 'isRejected' in code snippet
  • Loading branch information
EskiMojo14 committed Jan 19, 2024
2 parents d50f92b + eee558c commit a2edf36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/createAsyncThunk.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ If a thunk was cancelled, the result of the promise will be a `rejected` action
So if you wanted to test that a thunk was cancelled before executing, you can do the following:

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

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

0 comments on commit a2edf36

Please sign in to comment.