Skip to content

Commit 31f0896

Browse files
committed
Fix broken anchor links
1 parent 4bed903 commit 31f0896

File tree

9 files changed

+11
-11
lines changed

9 files changed

+11
-11
lines changed

docs/api/createEntityAdapter.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ const globalizedSelectors = booksAdapter.getSelectors((state) => state.books, {
341341
})
342342
```
343343

344-
If no instance is passed, it will default to [`createDraftSafeSelector`](./createSelector#createDraftSafeSelector).
344+
If no instance is passed, it will default to [`createDraftSafeSelector`](./createSelector.mdx#createdraftsafeselector).
345345

346346
:::
347347

docs/api/createSlice.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ As a result, there are two ways of getting final selectors:
498498

499499
#### `selectors`
500500

501-
Most commonly, the slice is reliably mounted under its [`reducerPath`](#reducerPath).
501+
Most commonly, the slice is reliably mounted under its [`reducerPath`](#reducerpath).
502502

503503
Following this, the slice has a `selectSlice` selector attached, which assumes that the slice is located under `rootState[slice.reducerPath]`.
504504

docs/rtk-query/api/createApi.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ export type QueryReturnValue<T = unknown, E = unknown, M = unknown> =
144144
145145
[summary](docblock://query/createApi.ts?token=CreateApiOptions.endpoints)
146146
147-
See [Anatomy of an endpoint](#anatomy-of-an-endpoint) for details on individual properties.
147+
See [Endpoint Definition Parameters](#endpoint-definition-parameters) for details on individual properties.
148148
149149
#### Query endpoint definition
150150

docs/rtk-query/internal/buildMiddleware/invalidationByTags.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ const handler: ApiMiddlewareInternalHandler = (action, mwApi) => {
6363
1. `invalidateTags()` initiates:
6464
1. invalidateTags function is called with a list of tags generated from the action metadata
6565
2. in the case of a [queryThunk] resolution an empty set of tags is always provided
66-
2. The tags calculated are added to the list of pending tags to invalidate (see [delayed](#Delayed))
66+
2. The tags calculated are added to the list of pending tags to invalidate (see [delayed](#delayed))
6767
3. (optional: 'Delayed') the invalidateTags function is ended if the `apiSlice.invalidationBehavior` is set to "delayed" and there are any pending thunks/queries running in that `apiSlice`
6868
4. Pending tags are reset to an empty list, if there are no tags the function ends here
6969
5. Selects all `{ endpointName, originalArgs, queryCacheKey }` combinations that would be invalidated by a specific set of tags.

docs/rtk-query/usage-with-typescript.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ function MaybePost({ id }: { id?: number }) {
527527

528528
## Type safe error handling
529529

530-
When an error is gracefully provided from a [`base query`](./api/createApi.mdx#baseQuery), RTK query will provide the error
530+
When an error is gracefully provided from a [`base query`](./api/createApi.mdx#basequery), RTK query will provide the error
531531
directly. If an unexpected error is thrown by user code rather than a handled error,
532532
that error will be transformed into a `SerializedError` shape. Users should make sure that they are checking which kind of error they are dealing with before attempting to access its properties. This can be done in a type safe manner either
533533
by using a type guard, e.g. by checking for [discriminated properties](https://www.typescriptlang.org/docs/handbook/2/narrowing.html#the-in-operator-narrowing),
@@ -613,7 +613,7 @@ function PostDetail() {
613613
<div>{errMsg}</div>
614614
</div>
615615
)
616-
}
616+
}
617617
// you can access all properties of `SerializedError` here
618618
return <div>{error.message}</div>
619619
}

docs/rtk-query/usage/cache-behavior.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ The Redux docs have always recommended [keeping data in a normalized lookup tabl
403403
404404
There are a couple additional points that can help here:
405405
406-
- The generated query hooks have [a `selectFromResult` option](../api/created-api/hooks.mdx#selectfromresult) that allow components to read individual pieces of data from a query result. As an example, a `<TodoList>` component might call `useTodosQuery()`, and each individual `<TodoListItem>` could use the same query hook but select from the result to get the right todo object.
406+
- The generated query hooks have [a `selectFromResult` option](../api/created-api/hooks.mdx#usequery) that allow components to read individual pieces of data from a query result. As an example, a `<TodoList>` component might call `useTodosQuery()`, and each individual `<TodoListItem>` could use the same query hook but select from the result to get the right todo object.
407407
- You can use the [`transformResponse` endpoint option](../api/createApi.mdx#transformresponse) to modify the fetched data so that it's [stored in a different shape](./customizing-queries.mdx#customizing-query-responses-with-transformresponse), such as using `createEntityAdapter` to normalize the data _for this one response_ before it's inserted into the cache.
408408
409409
### Further information

docs/rtk-query/usage/customizing-queries.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ import type {
690690
FetchArgs,
691691
FetchBaseQueryError,
692692
} from '@reduxjs/toolkit/query'
693-
import type { FetchBaseQueryMeta } from '@reduxjs/toolkit/dist/query/fetchBaseQuery'
693+
import type { FetchBaseQueryMeta } from '@reduxjs/toolkit/query'
694694
import { uuid } from './idGenerator'
695695

696696
// highlight-start
@@ -980,7 +980,7 @@ You could also try creating a custom base query that uses the SDK, and define en
980980

981981
In certain scenarios, you may wish to have a `query` or `mutation` where sending a request or returning data is not relevant for the situation. Such a scenario would be to leverage the `invalidatesTags` property to force re-fetch specific `tags` that have been provided to the cache.
982982

983-
See also [`providing errors to the cache`](./automated-refetching.mdx#providing-data-to-the-cache) to see additional detail and an example for such a scenario to 'refetch errored queries'.
983+
See also ["providing errors to the cache"](./automated-refetching.mdx#providing-errors-to-the-cache) to see additional detail and an example for such a scenario to 'refetch errored queries'.
984984

985985
```ts title="Using a no-op queryFn"
986986
// file: types.ts noEmit

docs/rtk-query/usage/error-handling.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ There are quite a few ways that you can manage your errors, and in some cases, y
7676

7777
:::tip
7878

79-
Redux Toolkit has [action matching utilities](../../api/matching-utilities.mdx#matching-utilities) that we can leverage for additional custom behaviors.
79+
Redux Toolkit has [action matching utilities](../../api/matching-utilities.mdx) that we can leverage for additional custom behaviors.
8080

8181
:::
8282

docs/usage/migrating-rtk-2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ yield takeEvery(todoAdded.type, saga)
897897

898898
### Custom slice reducer creators
899899

900-
With the addition of the [callback syntax for createSlice](#callback-syntax-for-createslicereducers), the [suggestion](https://github.com/reduxjs/redux-toolkit/issues/3837) was made to enable custom slice reducer creators. These creators would be able to:
900+
With the addition of the [callback syntax for createSlice](#createslicereducers-callback-syntax-and-thunk-support), the [suggestion](https://github.com/reduxjs/redux-toolkit/issues/3837) was made to enable custom slice reducer creators. These creators would be able to:
901901

902902
- Modify reducer behavior by adding case or matcher reducers
903903
- Attach actions (or any other useful functions) to `slice.actions`

0 commit comments

Comments
 (0)