Discussion: Is there a point to keeping the gloo-net client?
Currently, the `LemmyClient` trait is implemented for both the `awc` client and a placeholder `Fetch` struct which uses `gloo-net`. I take it that the point of the browser client is to be able to make requests from the browser when needed. However, with Leptos's server function feature, I question if this is necessary: browser-side calls of server functions use a stub that uses the browser's native `fetch` API. With this in mind, is there a reason to keep this logic? Stripping it would make the client implementation much simpler.
关闭于 2023-10-20 3 条评论