Loading video...

Video Failed to Load

Go Home

Prefetching Tanstack Query in a server component

56,536 views • 1 year ago •via X (Twitter)

11 Comments

Alex Sidorenko's profile picture
Alex Sidorenko1 year ago

The code for QueryClientProvider with Server Components

glueckkanja's profile picture
glueckkanja4 years ago

Are you searching for a simple way to deploy device certificates with #Intune? Check out SCEPman at

Tiger Abrodi's profile picture
Tiger Abrodi1 year ago

Super underrated. One of the things that I mentioned here.

Artem Kostylev's profile picture
Artem Kostylev1 year ago

Can we use with suspense ?

Alex Sidorenko's profile picture
Alex Sidorenko1 year ago

Yep, will make a separate vid about suspense and streaming

Fardo's profile picture
Fardo1 year ago

This is perfect, bringing all the power of the Tanstack React Query into server components, revalidation and integrations with client components. This is a true work of art.

Alex Sidorenko's profile picture
Alex Sidorenko1 year ago

Server components don't really need the power of the client-side fetching libraries by default. You can just fetch data on the server. This is useful when migrating existing SPA to server components or explicitly needing a client component.

Miloš Ristić's profile picture
Miloš Ristić1 year ago

I am using the same, with suspense. It works like a charm

Rodrigo Ehlers's profile picture
Rodrigo Ehlers1 year ago

Damn I thought I had to pass initial data!

jacob's profile picture
jacob1 year ago

answering all my quetsions! trpc next????

Alex Sidorenko's profile picture
Alex Sidorenko1 year ago

Made a todo for a vid In the meanwhile, there seems to be a guide in the docs

Related Videos