Skip to content

Difference between #[server] and #[server(MyFunction)] for fullstack app? #2726

Answered by ealmloff
ThomasCartier asked this question in Q&A
Discussion options

You must be logged in to vote

#[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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ThomasCartier
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants