Skip to content

Commit

Permalink
Update docs/framework/react/reference/useQueries.md
Browse files Browse the repository at this point in the history
  • Loading branch information
TkDodo committed Apr 5, 2024
1 parent eb2cdc4 commit 6456975
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/framework/react/reference/useQueries.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ In the above example, `combinedQueries` will be an object with a `data` and a `p

The `combine` function will only re-run if:

- it the `combine` function itself changed referentially
- the `combine` function itself changed referentially
- any of the query results changed

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

0 comments on commit 6456975

Please sign in to comment.