Replies: 4 comments 1 reply
-
The issue is happening at: https://github.com/commune-org/linksapp-proto/blob/main/front/src/templates/linkpage.rs#L12 and the struct is at: https://github.com/commune-org/linksapp-proto/blob/main/front/src/httpreq/model.rs |
Beta Was this translation helpful? Give feedback.
-
the issue is happening after passing the reactive struct to the function argument. I had the same issue from the tried example containing build states. . |
Beta Was this translation helpful? Give feedback.
-
Should you be using |
Beta Was this translation helpful? Give feedback.
-
thanks, another issue i'm facing, I'm having a hard time building a dynamic url, O tjpuigjt build path would solve that. what I need to do is to have a path like can you please advise ?
use perseus::{web_log, Html, PerseusApp, PerseusRoot};
| ^^^^^^^
error[E0593]: function is expected to take 0 arguments, but it takes 1 argument
--> src/main.rs:51:11
|
51 | .template(crate::templates::linkpage::get_template)
| -------- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected function that takes 0 arguments
| |
| required by a bound introduced by this call
|
::: src/templates/linkpage.rs:24:1
|
24 | pub fn get_template<G: Html>(pt: LinkPageStateRx) -> Template<G> {
| ---------------------------------------------------------------- takes 1 argument
|
note: required by a bound in `perseus::PerseusAppBase::<G, M, T>::template`
--> /home/afidegnum/.cargo/registry/src/github.com-1ecc6299db9ec823/perseus-0.4.0-beta.11/src/init.rs:378:41
|
378 | pub fn template(mut self, val: impl Fn() -> Template<G> + 'static) -> Self {
| ^^^^^^^^^^^^^^^^^^^ required by this bound in `perseus::PerseusAppBase::<G, M, T>::template`
|
Beta Was this translation helpful? Give feedback.
-
I'm facing the following error leaving me confused, wondering where do Implement the deserialization?
Beta Was this translation helpful? Give feedback.
All reactions