Netanel Basal

Results 282 comments of Netanel Basal

Yes. I finished the migration to v5 but the `DataTag` approach isn't working for me. Btw, the svelte adapter doesn't use it. I'm not sure how it works for you...

You can see a reproduction [here](https://www.typescriptlang.org/play?#code/KYDwDg9gTgLgBDAnmYcCKBXYVEGliJwC8cASsAIYAmEAdgDaICCUUFiAPBrQNa0QB3WgD4AUKKQo4AIQoBnYJmyIA8mBgBLOnOJwA3qLhwAjlhz5EALnRm8BUQF9xAY23wI6rbTnXZCpThqmtq6BkamyhbWANoA5BSxALpw8nCu3jCO4qCQsHBUwM70FFCo6XLwVBQwFAAqFADmAMqIALYARhD01twaEXBybZ30ANzZ4NDwkqgAItV1jRy1yMAANHAAahT0WMK6y1IAZPqGcNFVNfXNQ12J1ls7qFmiAGbczsG0cA3AMEFeciWATshFAMGAtCoOmBFl0MII61qcxqum4fEEIgAFB5Pj59CZbFE4MiFg0gYSEXAkfM9g4AJT6JyiH5-TzabFs7x0oA)

But you don't have it in the useQuery signature, so how does it works for you? useQuery(queryOptions({ queryKey }))

> you can pass a DataTag where a QueryKey is expected I understand how it works in getQueryData, but how it works with `useQuery(queryOptions)`? You can see in my basic...

@TkDodo I make it more clear. Check [this](https://www.typescriptlang.org/play?#code/KYDwDg9gTgLgBDAnmYcCKBXYVEGliJwC8cASsAIYAmEAdgDaICCUUFiAPBrQNa0QB3WgD4AUKKQo4AIQoBnYJmyIA8mBgBLOnOJwA3qLhwAjlhz5EALnRm8BUQF9xoSLDhVgAY3oUoqT9rwVBQwFAAqFADmAMqIALYARhD01twapqhy8Un0ANzO4NDwkqgAIiHhURxhyMAANHAAahT0WMK6NVIAZPqGcADawaERMdnJALrWza2ojuIAZtyemnQmtmortHLVSuYEDWHlocIAFBDqWlvWsgq7qhfaAJTWemvKFtZHlZE7thYHX3aDl6RiMfhgGCgtDgAEY4PJ4bREHNRAEtsUIDQ5BtLjoSBkcDjtCcDKC3nsrAMAOQUKnjeE6NFyGCOR4LJabOAYW62X7vAhwUAwYC0Kg6O4WXQS-ZwQ4VXTcPiCERnB5XfTkuyUm6KdZquQOR76Jyibm65QnGCYiDY-WPIA) please

But that's not in your code 🤔 https://github.com/TanStack/query/blob/main/packages/react-query/src/queryOptions.ts#L45

That's correct. I don't know what I'm missing. Anyway, thanks, I'll dig into it.

Can you give me an example, please?