{"id":18336308,"url":"https://github.com/launchpadlab/lp-redux-utils","last_synced_at":"2025-06-26T20:11:04.241Z","repository":{"id":26087048,"uuid":"106035102","full_name":"LaunchPadLab/lp-redux-utils","owner":"LaunchPadLab","description":"A collection of redux helper functions.","archived":false,"fork":false,"pushed_at":"2025-03-12T20:09:09.000Z","size":235,"stargazers_count":0,"open_issues_count":8,"forks_count":0,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-05-19T18:16:42.955Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/LaunchPadLab.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"publiccode":null,"codemeta":null}},"created_at":"2017-10-06T18:03:17.000Z","updated_at":"2023-08-03T13:06:35.000Z","dependencies_parsed_at":"2023-01-14T09:31:02.019Z","dependency_job_id":"60e7814e-f17f-4fb9-80f1-971aec1dec86","html_url":"https://github.com/LaunchPadLab/lp-redux-utils","commit_stats":{"total_commits":15,"total_committers":5,"mean_commits":3.0,"dds":"0.33333333333333337","last_synced_commit":"4762c03b087631907770f9b5c75d2ae98b88a05e"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"purl":"pkg:github/LaunchPadLab/lp-redux-utils","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPadLab%2Flp-redux-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPadLab%2Flp-redux-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPadLab%2Flp-redux-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPadLab%2Flp-redux-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LaunchPadLab","download_url":"https://codeload.github.com/LaunchPadLab/lp-redux-utils/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaunchPadLab%2Flp-redux-utils/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261266275,"owners_count":23132689,"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":[],"created_at":"2024-11-05T20:07:22.817Z","updated_at":"2025-06-26T20:11:04.189Z","avatar_url":"https://github.com/LaunchPadLab.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/%40launchpadlab%2Flp-redux-utils.svg)](https://badge.fury.io/js/%40launchpadlab%2Flp-redux-utils)\n\n# lp-redux-utils\n\nA collection of utility functions for redux applications. These helpers can help reduce boilerplate when accomplishing common redux tasks. Designed to be used in tandem with [redux-actions](https://github.com/redux-utilities/redux-actions).\n\nThe key helpers in this library are:\n\n- `setState(path)`: set a value in state when an action is dispatched.\n- `unsetState(path)`: clear a value in state when an action is dispatched.\n- `selectorForSlice(path)`: create a `select` function that can be used to create nested selectors for a path.\n\n```js\nimport { setState, selectorForSlice } from '@launchpadlab/lp-redux-utils'\nimport { createAction, handleActions } from 'redux-actions'\n\n// Generic setter from redux-actions\nconst setUser = createAction('SET_USER')\n\nconst reducer = handleActions(\n  {\n    // Set a value in state when the action is dispatched\n    [setUser]: setState('stuff.user'),\n  },\n  {}\n)\n\n// Create selectors for nested values\nconst select = selectorForSlice('stuff')\nconst userSelector = select('user')\n\n// userSelector(state) -\u003e \u003cvalue at stuff.user\u003e\n```\n\n## Documentation\n\nDocumentation and usage info can be found in [docs.md](docs.md).\n\n## Contribution\n\nThis package follows the Opex [NPM package guidelines](https://github.com/LaunchPadLab/opex/blob/master/gists/npm-package-guidelines.md). Please refer to the linked document for information on contributing, testing and versioning.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchpadlab%2Flp-redux-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaunchpadlab%2Flp-redux-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaunchpadlab%2Flp-redux-utils/lists"}