-
Hello! First of all, thank you for your project, it makes work with web so more comfortable! While I was reading leptos book, it was so easy to make client-side rendering. But in the end I've met some problems with server-side functions. In this chapter server function looks very easy, but it isn't returning something from server and |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Look at the final section of the chapter you linked to, or at some of the examples in this repo that use server functions (like
In other words, say you have a server function called let async_data = create_resource(cx,
|| (),
|_| my_server_function(),
); |
Beta Was this translation helpful? Give feedback.
Look at the final section of the chapter you linked to, or at some of the examples in this repo that use server functions (like
todo_app_sqlite
):In other words, say you have a server function called
my_server_function
: just create a resource that calls it.