{"id":42830669,"url":"https://github.com/weavedev/redux-lazy","last_synced_at":"2026-01-30T11:27:33.671Z","repository":{"id":40887517,"uuid":"234104401","full_name":"weavedev/redux-lazy","owner":"weavedev","description":"Quick save component for data storage in redux","archived":false,"fork":false,"pushed_at":"2022-12-10T14:58:42.000Z","size":563,"stargazers_count":2,"open_issues_count":16,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-25T04:26:39.245Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/weavedev.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}},"created_at":"2020-01-15T14:58:42.000Z","updated_at":"2020-03-24T14:21:21.000Z","dependencies_parsed_at":"2023-01-26T02:45:16.353Z","dependency_job_id":null,"html_url":"https://github.com/weavedev/redux-lazy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/weavedev/redux-lazy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavedev%2Fredux-lazy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavedev%2Fredux-lazy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavedev%2Fredux-lazy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavedev%2Fredux-lazy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/weavedev","download_url":"https://codeload.github.com/weavedev/redux-lazy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/weavedev%2Fredux-lazy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28911821,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-30T08:15:08.179Z","status":"ssl_error","status_checked_at":"2026-01-30T08:14:31.507Z","response_time":66,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2026-01-30T11:27:32.998Z","updated_at":"2026-01-30T11:27:33.666Z","avatar_url":"https://github.com/weavedev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# redux-lazy\n\n[![GPL-3.0](https://img.shields.io/github/license/weavedev/redux-lazy.svg)](https://github.com/weavedev/redux-lazy/blob/master/LICENSE)\n[![NPM](https://img.shields.io/npm/v/@weavedev/redux-lazy.svg)](https://www.npmjs.com/package/@weavedev/redux-lazy)\n\nQuick save component for data storage in [Redux](http://redux.js.org/)\n\n## Install\n\n```\nnpm i @weavedev/redux-lazy\n```\n\n## API documentation\n\nWe generate API documentation with [TypeDoc](https://typedoc.org).\n\n[![API Documentation](https://img.shields.io/badge/API-Documentation-blue?style=for-the-badge\u0026logo=typescript)](https://weavedev.github.io/redux-lazy/)\n\n## Usage\n\n### Creating\n\nIn this example we create a reducer and action to save an object  to the store containing a message.\n\n```ts\nimport { ReduxLazy } from '@weavedev/redux-lazy';\n\ninterface MyState {\n    message: string;\n}\n\nconst SAVE_ACTION = 'SAVE_ACTION';\nconst defaultState: MyState = {\n    message: 'Hello!',\n};\nexport const message = new ReduxLazy(SAVE_ACTION, defaultState);\n\n// If you are also using our store package (@weavedev/store)\nwindow.storeReducers.message = message.reducer;\n\ndeclare global {\n    interface StoreReducersMap {\n        message: typeof message.reducer;\n    }\n\n    interface StoreActionsMap {\n        message: typeof message.actions;\n    }\n}\n```\n\n### Saving\n\nYou can update the state by calling `.run()`. The argument type matches that of the default state provided in the constructor.\n\n```ts\nimport { message } from './message';\n\n// If you are also using our store package (@weavedev/store)\nwindow.store.dispatch(message.run({ message: 'Hey!' }));\n```\n\n## License\n\n[GPL-3.0](https://github.com/weavedev/redux-lazy/blob/master/LICENSE)\n\nMade by [Paul Gerarts](https://github.com/gerarts) and [Weave](https://weave.nl)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweavedev%2Fredux-lazy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fweavedev%2Fredux-lazy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fweavedev%2Fredux-lazy/lists"}