{"id":16204369,"url":"https://github.com/liangxiegame/uiwidgetsreduxpersist","last_synced_at":"2026-04-26T12:31:35.815Z","repository":{"id":141070312,"uuid":"186955196","full_name":"liangxiegame/UIWidgetsReduxPersist","owner":"liangxiegame","description":"Saver Middle Ware 4 UIWidgets Redux","archived":false,"fork":false,"pushed_at":"2019-05-16T05:33:49.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-07T19:46:42.496Z","etag":null,"topics":["u3d","uiwidgets","unity","unity3d"],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liangxiegame.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-05-16T05:08:41.000Z","updated_at":"2023-05-12T10:14:58.000Z","dependencies_parsed_at":"2023-07-05T14:15:44.258Z","dependency_job_id":null,"html_url":"https://github.com/liangxiegame/UIWidgetsReduxPersist","commit_stats":null,"previous_names":["liangxiegame/uiwidgetsreduxpersist"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liangxiegame/UIWidgetsReduxPersist","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangxiegame%2FUIWidgetsReduxPersist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangxiegame%2FUIWidgetsReduxPersist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangxiegame%2FUIWidgetsReduxPersist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangxiegame%2FUIWidgetsReduxPersist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liangxiegame","download_url":"https://codeload.github.com/liangxiegame/UIWidgetsReduxPersist/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liangxiegame%2FUIWidgetsReduxPersist/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32297893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-26T09:34:17.070Z","status":"ssl_error","status_checked_at":"2026-04-26T09:34:00.993Z","response_time":129,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["u3d","uiwidgets","unity","unity3d"],"created_at":"2024-10-10T09:58:05.040Z","updated_at":"2026-04-26T12:31:35.798Z","avatar_url":"https://github.com/liangxiegame.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UIWidgetsReduxPersist\nSaver Middle Ware 4 UIWidgets Redux\n\n\n\n### Example:\n\n``` csharp\nusing System.Collections.Generic;\nusing Unity.UIWidgets;\nusing Unity.UIWidgets.engine;\nusing Unity.UIWidgets.material;\nusing Unity.UIWidgets.Redux;\nusing Unity.UIWidgets.widgets;\n// 1.import namespace\nusing QFramework.UIWidgets.ReduxPersist;\n\nnamespace QF.UIWidgets.ReduxPersist.Example\n{\n    // 2.declare state\n    class ExampleState : AbstractPersistState\u003cExampleState\u003e\n    {\n        public int Count = 0;\n    }\n\n    public class Example : UIWidgetsPanel\n    {\n        protected override Widget createWidget()\n        {\n            var store = new Store\u003cExampleState\u003e((state, action) =\u003e\n                {\n                    switch (action)\n                    {\n                        case IncreaseCountAction _:\n                            return new ExampleState\n                            {\n                                Count = state.Count + 1\n                            };\n\n                        case DecreaseCountAction _:\n                            return new ExampleState\n                            {\n                                Count = state.Count - 1\n                            };\n                    }\n\n                    return state; \n                },\n                // 3.call load\n                ExampleState.Load(),\n                // 4.add middleware\n                ReduxPersistMiddleware.create\u003cExampleState\u003e());\n            return new StoreProvider\u003cExampleState\u003e(store,\n                child: new StoreConnector\u003cExampleState, int\u003e(\n                    converter: state =\u003e state.Count,\n                    builder: (context, model, dispatcher) =\u003e\n                    {\n                        return new Row(\n                            children: new List\u003cWidget\u003e()\n                            {\n                                new FlatButton(\n                                    child: new Text(\"-\"),\n                                    onPressed: () =\u003e { dispatcher.dispatch(new DecreaseCountAction()); }\n                                ),\n                                new Text(model.ToString()),\n                                new FlatButton(\n                                    child: new Text(\"+\"),\n                                    onPressed: () =\u003e { dispatcher.dispatch(new IncreaseCountAction()); }\n                                ),\n                            }\n                        );\n                    }\n                )\n            );\n        }\n    }\n\n    class IncreaseCountAction\n    {\n\n    }\n\n    class DecreaseCountAction\n    {\n\n    }\n}\n\n```\n\n\n\n### Dependenciy:\n\n*  [JSON.NET for Unity](https://assetstore.unity.com/packages/tools/input-management/json-net-for-unity-11347)\n* [UIWidgets](https://github.com/UnityTech/UIWidgets)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliangxiegame%2Fuiwidgetsreduxpersist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliangxiegame%2Fuiwidgetsreduxpersist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliangxiegame%2Fuiwidgetsreduxpersist/lists"}