TanStack / query

🤖 Powerful asynchronous state management, server-state utilities and data fetching for the web. TS/JS, React Query, Solid Query, Svelte Query and Vue Query.
https://tanstack.com/query
MIT License
41.77k stars 2.84k forks source link

SolidJS createInfiniteQuery is not reactive #7389

Closed oliver92 closed 4 months ago

oliver92 commented 4 months ago

Describe the bug

In SolidJS Im using createInfiniteQuery to wrap around a fetch request. The request is being sent and no errors are thrown, i can see in DevTools that the data of the query is there, but i never get the results back in the component.

Your minimal, reproducible example

https://stackblitz.com/edit/solidjs-templates-lgdarw?file=src%2FQueryTest.jsx

Steps to reproduce

  1. const query = createInfiniteQuery(...
  2. query.isLoading never changes
  3. query.data is always undefined

Expected behavior

I except "query" to be reactive just like in createQuery, but its not.

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

Tanstack Query adapter

solid-query

TanStack Query version

5.34.0

TypeScript version

No response

Additional context

No response

oliver92 commented 4 months ago

I found the fault in the getNextPageParam, sorry