trpc-sveltekit
trpc-sveltekit copied to clipboard
Invalidating server-side procedure calls?
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?