-
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 1 reply
-
Here are some good options:
|
Beta Was this translation helpful? Give feedback.
1 reply
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_storage
from theleptos-use
librarygloo_storage
fromgloo
, which offers a variety of Rust-friendly wrappers for web APIsweb-sys
Local Storage directly as in thetodomvc
example in this repoleptos/examples/todomvc/src/lib.rs
Lines 12 to 23 in 11f6a5d