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
Make queries reactive
SolidQueryDevtools doesn't render in a TansStack Start app
[object Promise]
Example:
https://codesandbox.io/p/devbox/amazing-varahamihira-n3n952...Solidstart + TanStack/query error prefetch
 (index):347 Uncaught (in promise) Error: experimental_prefetchInRender feature flag is not enabled
 (index):347 Uncaught (in promise) Error: experimental_prefetchInRender feature flag is not enabled
Solid.js + tanstack/solid-query multiple refetch problem on error
const eventsQuery = createMemo(() => messagesIds().length ? getScheduledEventsApiFrontendScheduledEventsGetQuery(...

How to use QueryClient within Actions
action
functions that come from Solid. Given the following:
```ts
type SignInForm = {...TanstackQuery useMutation example
mutationFn
and a mutationKey
. This is the way I usually go about it. I've got the follow function to create a thing:
```
const createThing = async (thing: object) => {
try {...Error: experimental_prefetchInRender feature flag is not enabled

Invalidate during an action()
``` const myAction = action(async ()=>{ /// do something await queryClient.invalidateQueries();...
TypeScript errors for createQuery(options, queryClient)
Suspend with query data from external promise
accessing the queries status triggers <Suspense>?
Bug during hydratation - wrong queryKey is hydrated
queryKey
.
If the user clicks on the "Next page" button before hydratation has completed, the user sees the title "Page 2" but is displayed items that belong to page 1. On window refocus, items for page 2 are fetched and displayed correctly.
In Solid Query dev tools, I can see:...Suspense sometimes not resolving
Optimistic updates without re-rendering everything?
queryClient.setQueryData(['cart'], /* shopping cart where relevant item is modified */);
queryClient.setQueryData(['cart'], /* shopping cart where relevant item is modified */);
Query dependencies
enabled:
would work for me, as I need to hold suspense and resolve all of these queries during SSR phase.
I could probably combine them in the same async+query, but that means I can't reuse first query without the second one...Ability to disable suspense for certain queries
suspense
property in query options seems to be ignored and from what I can tell in the source code, nothing actually reads that property.Same update for multiple queries
queryKey ['posts', communityId].
But you can go directly to one community and scroll over the posts of that community (queryKey: ['posts', communityId, subCommunityId])
And if you enter to see post details you have the queryKey ['post', 'communityId, postId]
My problem is that every mutation hook that dispatch an action like 'comment', 'upvote', etc ends in three setQueryData that the search in the list of posts to update the correct post....Multiple calls in createInfiniteQuery
getQueryState result isn’t reactive
Weird behaviour with setQueriesData