#Server function error code
1 messages · Page 1 of 1 (latest)
Inside the server function you can get or set the status code from the server context
When you get the result on the client, there isn't always an unique request associated with that server function call, so you can't match on the http error code but you can use a custom error type to represent your errors in the 0.7 version of dioxus
An error type for server functions. This may either be an error that occurred while running the server function logic, or an error that occurred while communicating with the server inside the server function crate.
oh wow not sure how I missed this! Thank you
wdym by there isnt always a unique request associated with the server function call?
When server function calls start on the server, it just calls the function directly without creating a request
Ah and for ssr too then?
yes