redux-toolkit icon indicating copy to clipboard operation
redux-toolkit copied to clipboard

TypeScript shows `hasNextPage` is always false from an infiniteQuery hook

Open colinsullivan opened this issue 6 months ago • 2 comments

Should this type be a boolean instead of false ? Or am I missing something about how to set this up properly ?

https://github.com/reduxjs/redux-toolkit/blob/af3e75bb9e6a51e13603d2a5684ef3ba1da07e3b/packages/toolkit/src/query/react/buildHooks.ts#L1241

Looks like at runtime it is a boolean

https://github.com/reduxjs/redux-toolkit/blob/af3e75bb9e6a51e13603d2a5684ef3ba1da07e3b/packages/toolkit/src/query/core/buildSelectors.ts#L291

colinsullivan avatar May 29 '25 16:05 colinsullivan