You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Of course, the constant is used twice in the code, just like in middleware. So why not implement #[server(fullpath = "...")]. This field overrides the prefix and endpoint fields.
EDIT: maybe, fullpath is another feature.
The text was updated successfully, but these errors were encountered:
PR welcome. @rakshith-ravi raised a similar idea recently I believe. It would require replacing the current form of constant string concatenation, which uses const_format::concatcp!() and only accepts literals, with some kind of const string slice concatenation like this pair.
Yusss. I have a very basic wip with me. Haven't found too much time to work more on it. Happy to collaborate with you @tetuaoro if you're interested in working on this. I'm here on discord (you can find me on the Leptos discord as well)
Is your feature request related to a problem? Please describe.
No.
I like to use
const
wherever I can in the code. So I tried to use a const in the macro#[server]
but it's not supported.Example :
Of course, the constant is used twice in the code, just like in middleware. So why not implement
#[server(fullpath = "...")]
. This field overrides theprefix
andendpoint
fields.EDIT: maybe,
fullpath
is another feature.The text was updated successfully, but these errors were encountered: