正在加载视频...

视频加载失败

Prefetching Tanstack Query in a server component

56,536 次观看 • 1 年前 •via X (Twitter)

11 条评论

Alex Sidorenko 的头像
Alex Sidorenko1 年前

The code for QueryClientProvider with Server Components

glueckkanja 的头像
glueckkanja4 年前

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

Tiger Abrodi 的头像
Tiger Abrodi1 年前

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

Artem Kostylev 的头像
Artem Kostylev1 年前

Can we use with suspense ?

Alex Sidorenko 的头像
Alex Sidorenko1 年前

Yep, will make a separate vid about suspense and streaming

Fardo 的头像
Fardo1 年前

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 的头像
Alex Sidorenko1 年前

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ć 的头像
Miloš Ristić1 年前

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

Rodrigo Ehlers 的头像
Rodrigo Ehlers1 年前

Damn I thought I had to pass initial data!

jacob 的头像
jacob1 年前

answering all my quetsions! trpc next????

Alex Sidorenko 的头像
Alex Sidorenko1 年前

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

相关视频