Ryo Hirayama
Ryo Hirayama
I've created a minimum repro. https://github.com/ryo33/dioxus-repros/blob/646c6791482d1227eb69f48ac6cb0faad5d34e21/src/main.rs#L19-L40 It's just a server function that waits a milli-second. It reproduces regardless of whether `suspend()` is used.
It still happens on the latest "[email protected]"
Thank you for your feedback! The purpose of this is to provide users with an additional option to use custom errors in the return type without breaking the existing code...
Thanks! I've started to work on it.
Yes, but there are several limitations: - Users cannot implement `From` or any similar things for ServerFnError. - Users cannot limit automatic type conversion for only specific types since ServerFnError...
It's already achievable by attaching tower middleware to a server function. It's verbose than your suggested solution but it's more modular. https://docs.rs/dioxus/0.6.0-alpha.3/dioxus/prelude/attr.server.html#adding-layers-to-server-functions Edit: I've noticed that middleware only work server...
I encountered this a lot when deploying bevy built projects on web target, but not yet with dioxus. I had never successfully investigated why this happens and how to avoid...