Skip to content

Commit 8685630

Browse files
authored
Fix typo in part-8-rtk-query-advanced.md (#4202)
1 parent 0e3e65e commit 8685630

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/tutorials/essentials/part-8-rtk-query-advanced.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ In this case, we'll call the field `postsForUser`, and we can destructure that n
567567
We've now seen three different ways that we can manage transforming responses:
568568
569569
- Keep original response in cache, read full result in component and derive values
570-
- Keep original response in cache, read derived result with `selectFromResponse`
570+
- Keep original response in cache, read derived result with `selectFromResult`
571571
- Transform response before storing in cache
572572
573573
Each of these approaches can be useful in different situations. Here's some suggestions for when you should consider using them:
@@ -1083,7 +1083,7 @@ Let's take one last look at the whole application in action:
10831083
- Endpoint objects include functions for initating requests, generating result selectors, and matching request action objects
10841084
- **Responses can be transformed in different ways as needed**
10851085
- Endpoints can define a `transformResponse` callback to modify the data before caching
1086-
- Hooks can be given a `selectFromResponse` option to extract/transform data
1086+
- Hooks can be given a `selectFromResult` option to extract/transform data
10871087
- Components can read an entire value and transform with `useMemo`
10881088
- **RTK Query has advanced options for manipulating cached data for better user experience**
10891089
- The `onQueryStarted` lifecycle can be used for optimistic updates by updating cache immediately before a request returns

0 commit comments

Comments
 (0)