julius
julius
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
the prefetching works now atleast https://github.com/trpc/trpc/pull/5828
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
i should too
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
fair
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
ahve it here but you might wanna review that separately https://github.com/trpc/trpc/pull/5828/files
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
it can pick up a cached callback that's incorrect i think
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
so if you have multiple proxies it'll get fucked
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
yea I think what's happening here is the path gets cached with no respect to the callback
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
i don't know why it doesn't work in RSC though....
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
No description
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
No description
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
I’ll try to find some time to finish it up and get it shipped soon
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
Yea the RQ change was only part of the problem. I have some fixes on trpc side too
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
(we'll probably deprecate/remove transformPromise and have a generic transform for both data and promise)
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
No there’s a race condition if the query finishes on the server before ”hitting the network” and then the query doesn’t get transformed on the client
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
if you don't use data transformers i think it should work fine
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
hey @michaelschufi - I think the issue is related to data transforming and will require a fix upstreams in RQ
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
Ok I’ll take a look today and see what broke and add a better test, it seems to have slipped through this one https://github.com/trpc/trpc/blob/next/packages/tests/server/react/rsc-prefetch.test.tsx so might have to make an e2e test
53 replies
TtRPC
Created by michaelschufi on 6/12/2024 in #❓-help
Can I use the "Streaming with Server Components" strategy with tRPC?
Is this on page load? If so that’s a bug. But it should refetch from client as the data gets stale
53 replies