Questions tagged [leptos]
5 questions
1
vote
1 answer
Axum with Leptos: how do I get AppState in [server] Macro?
I try to work with axum and leptos on a fullstack app
I am trying to use a server shared resource with SSR leptos handlers, which usually would be an AppState struct added to the router with with_state()
After studying multiple examples, I am…

g4borg
- 76
- 6
1
vote
1 answer
leptos with axum: Issue with wasm-bindgen versions
I am just getting started with Rust and Leptos, so I'm also quite new to the whole rust / cargo ecosystem.
I was following the leptos tutorial to setup a new leptos project using axum. When I tried starting the project with
cargo leptos watch
I ran…

platzhersh
- 1,520
- 20
- 35
0
votes
2 answers
How to avoid warning "You access a signal or memo outside a reactive tracking context"
I have an async action which alters data in an external api (POST request). When the request has finished, then I need to refetch data from this api, in order to reflect the changes in the view. But when I call my_resource.refetch() inside the…

yolenoyer
- 8,797
- 2
- 27
- 61
0
votes
1 answer
Is there a way for tailwind.config.js to auto bundle dynamic class attributes on leptos
so I was trying out tailwindcss with leptos framework, what I noticed is when classes are included in static class attribute, the tailwindcss config recognize and build up those in output.css. however if I was to include class name using Dynamic…

Ferin Patel
- 13
- 2
0
votes
1 answer
Leptos router gives a warning which I do not unterstand
I stared to experiment with https://github.com/gbj/leptos/ using the current main branch from Git. Following the router example I get the following warning in my console in the browser:
WARNING: You are providing a context of a…

Achim
- 15,415
- 15
- 80
- 144