Skip to content

Commit 565a241

Browse files
authored
docs: Fix typos in render-optimizations.md (TanStack#7246)
1 parent b9179d3 commit 565a241

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/framework/react/guides/render-optimizations.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ React Query uses a technique called "structural sharing" to ensure that as many
1313
1414
### referential identity
1515

16-
The top level object returned from `useQuery`, `useInfiniteQuery`, `useMutation` and the Array returned from `useQueries` is **not referentially stable**. It will be new a new reference on every render. However, the `data` properties returned from these hooks will be as stable as possible.
16+
The top level object returned from `useQuery`, `useInfiniteQuery`, `useMutation` and the Array returned from `useQueries` is **not referentially stable**. It will be a new reference on every render. However, the `data` properties returned from these hooks will be as stable as possible.
1717

1818
## tracked properties
1919

@@ -50,7 +50,7 @@ The `select` function will only re-run if:
5050
- the `select` function itself changed referentially
5151
- `data` changed
5252

53-
This means that an inlined `select` function, as shown above, will run on every render. To avoid this, you can wrap the `select` function in `useCallback`, or extract it so a stable function reference if it doesn't have any dependencies:
53+
This means that an inlined `select` function, as shown above, will run on every render. To avoid this, you can wrap the `select` function in `useCallback`, or extract it to a stable function reference if it doesn't have any dependencies:
5454

5555
```js
5656
// wrapped in useCallback

0 commit comments

Comments
 (0)