You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey there first, thanks for this project!
I'd like to ask for the ability to construct GrpcWebFetchTransport with a fetch function.
The use case here would be when using svelte for example where the load (https://kit.svelte.dev/docs/load#making-fetch-requests) function receives an implementation, and it is safer to use it on SSR and on browser.
Is it something viable or, should I have been using another option for that?
Thanks in advance!
The text was updated successfully, but these errors were encountered:
Even if there were an option to allow you to pass in your own fetch function I don't think it would help you with your svelte/SSR goal. In your link it says:
During server-side rendering, the response will be captured and inlined into the rendered HTML by hooking into the text and json methods of the Response object.
But the GrpcWebFetchTransport uses neither of those methods. Instead it reads from the Response.body which is a ReadableStream.
Hey there first, thanks for this project!
I'd like to ask for the ability to construct
GrpcWebFetchTransport
with a fetch function.The use case here would be when using svelte for example where the
load
(https://kit.svelte.dev/docs/load#making-fetch-requests) function receives an implementation, and it is safer to use it on SSR and on browser.Is it something viable or, should I have been using another option for that?
Thanks in advance!
The text was updated successfully, but these errors were encountered: