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
multiple toast messages
Global error handler for mutations and meta
What are the correct types for UseQueryOptions that will make select infer correctly?
partial
, else select
will emit TS error if returned data is mutated and doesnt equal the exact type.
```js
export const getProjectsQuery = <TData = { projects: Array<Project> }>(
options?: Omit<UseQueryOptions<TData>, "queryKey" | "queryFn">,...LocalStorage is being cleared when I go offline and refresh the browser
NextJS, SSR Prefetch/Hydration not working

Is there a way to use a promise for the initial data?
refetching isnt working
Declare type of useQuery with initialData
useSuspenseQuery with Next.js app router
Throw Error in Selector
select
function, bascially to ensure I have the correct data types from the server and transform the API response into an object that the type is defined by me.
I'm using zod to catch the errors and the parser function does throw error. Now, I would like to tell react query that there's something wrong when doing data transformation in select
function. But it does nothing.
How to let react query knows that something wrong is happening?...Is there a way to use interceptors in tanstack query ?
State syncing with local state - is there a better way?
checkedQuoteIDs
to keep track of which ones are checked. I want them all to be checked by default to begin with.
Here is my useQuery and state:
```js...Why do I need to use `lastValueFrom` to convert Observable to Promise in TanStack Angular Query?*
lastValueFrom
to convert an Observable to a Promise in the query function. Here's an example of my code:
```typescript
import { of, lastValueFrom } from 'rxjs';
......Invalidate query and wait for it to repopulate and then run a function
react-query + react + astro + ssr
UseInfiniteQuery with a function that takes other parameters as well.
how to refetch with a passed in variable, state is behind
query data type is (Type | undefined) after `isError` check
``ts
const getVisitById = async (id: number): Promise<VisitResponse> => {
return await GET(
/visits/${id}`);
};
...Redux-Saga takeLatest equivalent in react-query land

How to do dependent queries in svelte?