Difference between #[server] and #[server(MyFunction)] for fullstack app? #2726
Answered
by
ealmloff
ThomasCartier
asked this question in
Q&A
-
Hi,
and
Just fine using the latest Dioxus. Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
ealmloff
Jul 29, 2024
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ThomasCartier
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
#[server]
expands to#[server(GetServerData)]
with a name generated from the upper camel case version of the function name. You rarely need to know the name of the struct that implements the server function trait so#[server]
is generally fine