Is fetch()
in Svelte Hooks handle bad, and has alternatives?
#12571
Unanswered
alissa-tung
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I am trying to write a handle function, which will bypass the SvelteKit, and proxy the request to gRPC-Web API server.
My initial approach is
the APIs are been called correctly, but the dev server says
My questions are the following
(and of course it's okay to set up a gateway (Nginx, Caddy, ...) for proxy an API server, I want to do in Svelte is that I can provide some info gathered by JavaScript and code in my Svelte app codebase to made the new request that should be proxied, so I would chose to have a try in the handle)
in addition, if I disable SSR for the page, in client side console
connectrpc es does have some documentation to fix this, and
I read about
Since SSR has been disabled, I am not sure will hydration still able to gather response from HTML? (If so, would we disable this warning when SSR is disabled?)
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions