{"id":24630935,"url":"https://github.com/jarweb/wolverine-state","last_synced_at":"2026-05-03T20:39:50.241Z","repository":{"id":42882896,"uuid":"255529482","full_name":"Jarweb/wolverine-state","owner":"Jarweb","description":"a lightweight  react state management lib build with contex、hook and immer","archived":false,"fork":false,"pushed_at":"2023-01-06T03:27:37.000Z","size":2904,"stargazers_count":2,"open_issues_count":18,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-18T03:48:56.318Z","etag":null,"topics":["hook","immer","react","state-management"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jarweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-14T06:34:16.000Z","updated_at":"2023-03-10T08:13:02.000Z","dependencies_parsed_at":"2023-02-05T05:15:23.389Z","dependency_job_id":null,"html_url":"https://github.com/Jarweb/wolverine-state","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jarweb%2Fwolverine-state","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jarweb%2Fwolverine-state/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jarweb%2Fwolverine-state/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jarweb%2Fwolverine-state/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jarweb","download_url":"https://codeload.github.com/Jarweb/wolverine-state/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244560384,"owners_count":20472218,"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":["hook","immer","react","state-management"],"created_at":"2025-01-25T07:13:49.736Z","updated_at":"2026-05-03T20:39:50.198Z","avatar_url":"https://github.com/Jarweb.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"### intro\n\na lightweight react state management lib based on immer 、 react hook and context\n\n\n\n### quick start\n\n```\nyarn add @jarzzzi/wolverine-state\n```\n\n\n### example\n\n```javascript\nconst initialState: StoreData = {\n count: 0,\n show: false\n}\n\nconst store = createStore(initialState)\n\nfunction Demo () {\n const { count } = useConnect\u003cStoreData, Partial\u003cStoreData\u003e\u003e((state) =\u003e {\n   return { count: state.count }\n })\n\n const inc = () =\u003e {\n   store.produce((state) =\u003e {\n     state.count++\n   })\n  }\n\n const dec = () =\u003e {\n  store.produce((state) =\u003e {\n   state.count--\n  })\n }\n\n return (\n   \u003cdiv\u003e\n    \u003cdiv\u003e{count}\u003c/div\u003e\n    \u003cbutton onClick={inc}\u003einc\u003c/button\u003e\n    \u003cbutton onClick={dec}\u003edec\u003c/button\u003e\n   \u003c/div\u003e\n  )\n}\n\nfunction App () {\n return (\n   \u003cProvider value={store}\u003e\n    \u003cDemo /\u003e\n    \u003cText /\u003e\n   \u003c/Provider\u003e\n )\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarweb%2Fwolverine-state","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjarweb%2Fwolverine-state","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjarweb%2Fwolverine-state/lists"}