redux-toolkit
redux-toolkit copied to clipboard
TypeScript shows `hasNextPage` is always false from an infiniteQuery hook
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