mirror of
https://github.com/leptos-rs/book.git
synced 2025-12-27 10:01:41 -05:00
@@ -353,6 +353,8 @@ On the other hand, it’s the newest API. As of writing this sentence (December
|
||||
|
||||
Here’s the complete store example. You can find another, more complete example [here](https://github.com/leptos-rs/leptos/blob/main/examples/stores/src/lib.rs), and more discussion in the book [here](../15_global_state.md).
|
||||
```
|
||||
use reactive_stores::Store;
|
||||
|
||||
#[derive(Store, Debug, Clone)]
|
||||
pub struct Data {
|
||||
#[store(key: String = |row| row.key.clone())]
|
||||
|
||||
Reference in New Issue
Block a user