v-for-v
v-for-v
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
Its no different than using the pages router
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
I would need to have some client side calls in the app regardless of whether I went the server route
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
Why would it a greater potential for DDoS when its making less requests than a server component would?
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
Any performance gained for me would have been lost with the multiple requests
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
I essentially have just removed server components from my app and have kept the app router
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
The issue is that the tRPC calls aren't being cached within the same server request as they should be
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
Yeah i'm not talking about server caching across multiple devices
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
I could make everything a client component and continue using react-query which would work the same, but then i'm not getting any benefit for the increased complexity of using the app router
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
It forces you to use react-query in most cases, which caches requests
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
Or at least, Vercel shouldn't list this as a pattern for sharing data
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
Having a functional cache is pretty important, thankfully I tested this because it would have meant 6x the serverless function usage
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
I'm moving back to the page router, the juice isn't worth the squeeze tbh
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
I can't see that it does anything special
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
You can always just write your own cache function anyway though right?
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
So you'd need to use the same reference all over
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
Well thats shit
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
What function args?
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
If I have to do that, I might as well not use tRPC
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
I can't find anyone mentioning this which is surprising / concerning
54 replies
TTCTheo's Typesafe Cult
Created by v-for-v on 4/21/2024 in #questions
Bug!? Server side calls are not being cached
Very easy to recreate, just create 2 server functions that make the same call to a query that logs 'hello' (with no input) and you'll see it printed twice
54 replies