Skip to content

Commit 3718594

Browse files
committed
Fix broken links in matching utilities page
1 parent b3e50dc commit 3718594

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

docs/api/matching-utilities.mdx

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ All these matchers can either be called with one or more thunks as arguments, in
3131
A higher-order function that accepts one or more of:
3232

3333
- `redux-toolkit` action creator functions such as the ones produced by:
34-
- [`createAction`](./createAction)
35-
- [`createSlice`](./createSlice#return-value)
36-
- [`createAsyncThunk`](./createAsyncThunk#promise-lifecycle-actions)
34+
- [`createAction`](./createAction.mdx)
35+
- [`createSlice`](./createSlice.mdx#return-value)
36+
- [`createAsyncThunk`](./createAsyncThunk.mdx#promise-lifecycle-actions)
3737
- type guard functions
3838
- custom action creator functions that have a `.match` property that is a type guard
3939

@@ -45,7 +45,7 @@ Accepts the same inputs as `isAllOf` and will return a type guard function that
4545

4646
## `isAsyncThunkAction`
4747

48-
A higher-order function that returns a type guard function that may be used to check whether an action was created by [`createAsyncThunk`](./createAsyncThunk).
48+
A higher-order function that returns a type guard function that may be used to check whether an action was created by [`createAsyncThunk`](./createAsyncThunk.mdx).
4949

5050
```ts title="isAsyncThunkAction usage"
5151
import { isAsyncThunkAction } from '@reduxjs/toolkit'
@@ -117,7 +117,7 @@ function handleRejectedAction(action: AnyAction) {
117117

118118
## `isRejectedWithValue`
119119

120-
A higher-order function that returns a type guard function that may be used to check whether an action is a 'rejected' action creator from the `createAsyncThunk` promise lifecycle that was created by [`rejectWithValue`](./createAsyncThunk#handling-thunk-errors).
120+
A higher-order function that returns a type guard function that may be used to check whether an action is a 'rejected' action creator from the `createAsyncThunk` promise lifecycle that was created by [`rejectWithValue`](./createAsyncThunk.mdx#handling-thunk-errors).
121121

122122
```ts title="isRejectedWithValue usage"
123123
import { isRejectedWithValue } from '@reduxjs/toolkit'
@@ -145,10 +145,7 @@ we're able to easily use the same matcher for several cases in a type-safe manne
145145
First, let's examine an unnecessarily complex example:
146146

147147
```ts title="Example without using a matcher utility"
148-
import {
149-
createAsyncThunk,
150-
createReducer,
151-
} from '@reduxjs/toolkit'
148+
import { createAsyncThunk, createReducer } from '@reduxjs/toolkit'
152149
import type { PayloadAction } from '@reduxjs/toolkit'
153150

154151
interface Data {

0 commit comments

Comments
 (0)