We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dd5934 commit 7c90bfdCopy full SHA for 7c90bfd
packages/toolkit/src/query/react/buildHooks.ts
@@ -1117,6 +1117,7 @@ export type UseInfiniteQueryStateOptions<
1117
* `selectFromResult` allows you to get a specific segment from a query result in a performant manner.
1118
* When using this feature, the component will not rerender unless the underlying data of the selected item has changed.
1119
* If the selected item is one element in a larger collection, it will disregard changes to elements in the same collection.
1120
+ * Note that this should always return an object (not a primitive), as RTKQ adds fields to the return value.
1121
*
1122
* @example
1123
* ```ts
0 commit comments