trpc-sveltekit icon indicating copy to clipboard operation
trpc-sveltekit copied to clipboard

Invalidating server-side procedure calls?

Open MoritzKronberger opened this issue 2 years ago • 0 comments

Since trpc-sveltekit allows procedure calls inside the load function, by passing load-fetch to the client, it would be nice to be able to invalidate the procedure calls like any other fetch calls.

According to the SvelteKit docs the appropriate depends should be called automatically when using load-fetch, however in my tests I could not get SvelteKit's invalidation to work without manually adding the procedure URLs with depends. Does anybody know why this might be the case?

MoritzKronberger avatar Sep 30 '22 09:09 MoritzKronberger