-
|
Is there a way to access the browser localStorage from leptos? https://blog.logrocket.com/localstorage-javascript-complete-guide/ |
Beta Was this translation helpful? Give feedback.
Answered by
gbj
Oct 17, 2023
Replies: 1 comment 6 replies
-
|
Here are some good options:
|
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
qknight
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here are some good options:
use_local_storagefrom theleptos-uselibrarygloo_storagefromgloo, which offers a variety of Rust-friendly wrappers for web APIsweb-sysLocal Storage directly as in thetodomvcexample in this repoleptos/examples/todomvc/src/lib.rs
Lines 12 to 23 in 11f6a5d