TanStack

T

TanStack

TanStack is a community of passionate software engineers striving for high-quality, open-source software for web devs

Join

react-query-questions

solid-query-questions

table-questions

virtual-questions

router-questions

react-charts-questions

ranger-questions

vue-query-questions

svelte-query-questions

bling-questions

form-questions

angular-query-questions

start-questions

db-questions

start-showcase

router-showcase

📣-announcements

other-emerald
other-emerald6/25/2023

Does solid-query depend on React?

QueryClientProvider.jsx:44 Uncaught ReferenceError: React is not defined at QueryClientProvider (QueryClientProvider.jsx:44:5) at dev.js:528:12 at untrack (dev.js:428:12) at Object.fn (dev.js:524:37)...
adverse-sapphire
adverse-sapphire4/12/2023

structural sharing do not preserve granularity

using a mutation to update a value in an object force the query to update the full object and not just the singular property. I was wondering if this is a bug or there is a way to preserve the granular updates I made a reproducible stackblitz:...
absent-sapphire
absent-sapphire3/17/2023

Query.data being a function

i'm using solid start and solid query v4, and with the following code: ``ts const channels = createQuery({ queryKey: () => ["servers", params.serverId, "channels"], queryFn: (c) => fetch(${import.meta.env.VITE_API_URL}/${API_VERSION}/${c.queryKey.join('/')}`).then((r) => r.json()), initialData: [],...
national-gold
national-gold2/17/2023

Retching query inside Suspense resets focus

I have an input and a query output inside a suspense boundry. Whenever the query updates (provoked here with the interval, but issue is the same when setting an refetch interval), the input looses its focus. I don't think its solid rerendering the input, as the uncontroller input value is being kept. ...
national-gold
national-gold2/6/2023

Thrown Errors within a query onSuccess fail silently

I have been working with https://github.com/OrJDev/solid-trpc. More specifically the SSR branch that makes use of @adeora/solid-query An issue I am running into or seeing is that the onSuccess will silently fail if you happened to throw something inside: ```ts...
national-gold
national-gold2/1/2023

Suspense + Transitions not working as expected

hi, i'm trying to use a createQuery together with solidjs "async transitions" feature. Transitions + suspense boundry should allow the updating of the resource's dependency to be done together with the updating of the actual data. That way the resource does not fall back to the loading state and instead only shows the new data and completes the update once the resource is done. ...
robust-apricot
robust-apricot1/12/2023

filterGlobal no update Solid js

hi, I am creating a global filter in solid js but the value is not updated with the value of the input state: { globalFilter: globalFilter(), get sorting() { return sorting(); }, ...
mute-gold
mute-gold11/27/2022

Option to reconcile result object

I am wondering how does solid query handle reactivity for results. If my query result returns an object, and I query it again and the result is the same object with 1 different key, will solid query handle this? I looked into the code and there's no use of solid's reconcile method.
generous-apricot
generous-apricot11/13/2022

Solid-Query devtools ?

Hello, i'm a user of react query and I want to explore solidjs. One thing that I love in react query is the devtools to refetch disable ... queries, and I didn't view a package or documentation about it in solid adapter. This is not release yet ? 🤔...
correct-apricot
correct-apricot10/2/2022

How to use context data in a query?

I have an access token that I am keeping in a Solid context. How can I use this token in a header in my solid-query requests?
fascinating-indigo
fascinating-indigo9/30/2022

Dependent Queries

Are there any good examples out there of dependent queries in solid? Mostly confused about the process of setting the enabled option correctly.
stormy-gold
stormy-gold9/27/2022

Example for createMutation

Hey! It's my first time using solid-query and I'm searching for an example for createMutation (especially for TS types). Currently I'm doing something like this with solid-query + trpc:...
sensitive-blue
sensitive-blue9/26/2022

Using solid-query dependent on resources?

I'm super new to TanStack Query (and SolidJS) and I have a question! If I have an async resource on which I'd like to build a query on, as it can be mutated. Basically it's a WASM binding from which I can get some settings from and update the settings. Seems like a perfect fit for the library using queries and mutations, even though it's not a real network resource, but it behaves almost the same as a GET and POST. So, there's wasmResource which is a SolidJS resource wrapper around the wasm object. ...