{"id":18611556,"url":"https://github.com/robertdp/purescript-react-store","last_synced_at":"2026-01-22T06:38:34.469Z","repository":{"id":42872591,"uuid":"257806893","full_name":"robertdp/purescript-react-store","owner":"robertdp","description":"An async state reducer hook for React. Bring your own execution context. Very likely to be replaced by https://github.com/robertdp/purescript-react-halo","archived":false,"fork":false,"pushed_at":"2022-12-11T02:51:24.000Z","size":66,"stargazers_count":6,"open_issues_count":5,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-13T14:34:56.591Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PureScript","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/robertdp.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-22T06:02:11.000Z","updated_at":"2020-12-30T22:51:46.000Z","dependencies_parsed_at":"2023-01-26T13:45:19.163Z","dependency_job_id":null,"html_url":"https://github.com/robertdp/purescript-react-store","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/robertdp/purescript-react-store","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdp%2Fpurescript-react-store","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdp%2Fpurescript-react-store/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdp%2Fpurescript-react-store/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdp%2Fpurescript-react-store/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/robertdp","download_url":"https://codeload.github.com/robertdp/purescript-react-store/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/robertdp%2Fpurescript-react-store/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28657056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-22T01:17:37.254Z","status":"online","status_checked_at":"2026-01-22T02:00:07.137Z","response_time":144,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-11-07T03:14:11.128Z","updated_at":"2026-01-22T06:38:34.448Z","avatar_url":"https://github.com/robertdp.png","language":"PureScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# purescript-react-store\n\nAsynchronous state management made easy(er).\n\nThis library provides the hook `useStore` for `react-basic-hooks`. It offers a straightforward and convenient approach to asynchronous state management for components.\n\n```purs\nuseStore ::\n  forall m props state action.\n  MonadEffect m =\u003e\n  { props :: props\n  , init :: state\n  , update ::\n      { props :: props\n      , state :: state\n      , setState :: (state -\u003e state) -\u003e m Unit\n      , readProps :: m props\n      , readState :: m state\n      } -\u003e\n      action -\u003e\n      m Unit\n  , launch :: m Unit -\u003e Aff Unit\n  } -\u003e\n  Hook (UseStore props state action m)\n    { state :: state\n    , dispatch :: action -\u003e Effect Unit\n    , readState :: Effect state\n    }\n```\n\n`useStore` is most useful for larger and more complex components, like page-level components. If you're not sure you need this library, try the hooks exposed by `react-basic-hooks` first. Just using `useEffect` and `useReducer` can get you a long way, and that library also includes `useAffReducer` for an Elm-ish approach.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdp%2Fpurescript-react-store","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frobertdp%2Fpurescript-react-store","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frobertdp%2Fpurescript-react-store/lists"}