{"id":13566281,"url":"https://github.com/intendednull/yewdux","last_synced_at":"2025-12-12T12:33:17.227Z","repository":{"id":38225956,"uuid":"279200157","full_name":"intendednull/yewdux","owner":"intendednull","description":"Ergonomic state management for Yew applications","archived":false,"fork":false,"pushed_at":"2023-12-28T22:54:39.000Z","size":1479,"stargazers_count":321,"open_issues_count":9,"forks_count":31,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-10-10T19:39:10.110Z","etag":null,"topics":["rust","state","state-container","state-management","store","wasm","web","yew"],"latest_commit_sha":null,"homepage":"https://intendednull.github.io/yewdux/","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/intendednull.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2020-07-13T03:26:31.000Z","updated_at":"2024-10-01T17:41:23.000Z","dependencies_parsed_at":"2023-11-28T12:27:51.786Z","dependency_job_id":"89560770-f0fc-4136-919b-2a07ec59d630","html_url":"https://github.com/intendednull/yewdux","commit_stats":{"total_commits":248,"total_committers":13,"mean_commits":"19.076923076923077","dds":"0.18951612903225812","last_synced_commit":"b046f6b5bc28fa00222c125f5b3529c3c840cf19"},"previous_names":["yewdux/yewdux","intendednull/yew-state"],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intendednull%2Fyewdux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intendednull%2Fyewdux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intendednull%2Fyewdux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/intendednull%2Fyewdux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/intendednull","download_url":"https://codeload.github.com/intendednull/yewdux/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411234,"owners_count":20934653,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["rust","state","state-container","state-management","store","wasm","web","yew"],"created_at":"2024-08-01T13:02:06.014Z","updated_at":"2025-12-12T12:33:12.169Z","avatar_url":"https://github.com/intendednull.png","language":"Rust","funding_links":[],"categories":["Rust","Crates"],"sub_categories":["Utils"],"readme":"# Yewdux\n\nErgonomic state management for [Yew](https://yew.rs) applications.\n\nSee the [book](https://intendednull.github.io/yewdux/) for more details.\n\n## Example\n\n```rust\nuse yew::prelude::*;\nuse yewdux::prelude::*;\n\n#[derive(Default, Clone, PartialEq, Store)]\nstruct State {\n    count: u32,\n}\n\n#[function_component]\nfn ViewCount() -\u003e Html {\n    let (state, _) = use_store::\u003cState\u003e();\n    html!(state.count)\n}\n\n#[function_component]\nfn IncrementCount() -\u003e Html {\n    let (_, dispatch) = use_store::\u003cState\u003e();\n    let onclick = dispatch.reduce_mut_callback(|counter| counter.count += 1);\n\n    html! {\n        \u003cbutton {onclick}\u003e{\"+1\"}\u003c/button\u003e\n    }\n}\n\n#[function_component]\nfn App() -\u003e Html {\n    html! {\n        \u003c\u003e\n        \u003cViewCount /\u003e\n        \u003cIncrementCount /\u003e\n        \u003c/\u003e\n    }\n}\n\nfn main() {\n    yew::Renderer::\u003cApp\u003e::new().render();\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintendednull%2Fyewdux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fintendednull%2Fyewdux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fintendednull%2Fyewdux/lists"}