Invalidating server-side procedure calls? #36
Unanswered
MoritzKronberger
asked this question in
Q&A
Replies: 1 comment
-
Hi @MoritzKronberger, did you find a good answer for this? Trying to do the same thing. It feels wrong to manually create strings for the procedure URLs.. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Since trpc-sveltekit allows procedure calls inside the
load
function, by passingload
-fetch
to the client, it would be nice to be able to invalidate the procedure calls like any otherfetch
calls.According to the SvelteKit docs the appropriate
depends
should be called automatically when usingload
-fetch
, however in my tests I could not get SvelteKit's invalidation to work without manually adding the procedure URLs withdepends
.Does anybody know why this might be the case?
Beta Was this translation helpful? Give feedback.
All reactions