{"id":18285936,"url":"https://github.com/exodusmovement/await-state","last_synced_at":"2025-04-05T08:30:38.089Z","repository":{"id":44041113,"uuid":"223033759","full_name":"ExodusMovement/await-state","owner":"ExodusMovement","description":null,"archived":false,"fork":false,"pushed_at":"2023-05-12T22:57:39.000Z","size":65,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-04-15T02:05:23.066Z","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/ExodusMovement.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":"2019-11-20T21:48:35.000Z","updated_at":"2022-12-20T18:08:29.000Z","dependencies_parsed_at":"2023-01-22T07:01:20.810Z","dependency_job_id":null,"html_url":"https://github.com/ExodusMovement/await-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/ExodusMovement%2Fawait-state","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExodusMovement%2Fawait-state/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExodusMovement%2Fawait-state/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExodusMovement%2Fawait-state/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExodusMovement","download_url":"https://codeload.github.com/ExodusMovement/await-state/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223174744,"owners_count":17100272,"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-05T13:18:17.653Z","updated_at":"2024-11-05T13:18:18.370Z","avatar_url":"https://github.com/ExodusMovement.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# await-state\n\nawait a desired redux state\n\n## Usage\n\n```js\nimport awaitState from 'await-state'\n\nconst isLoadedSelector = (state) =\u003e state.matrix.isLoaded\n\n// resolves immediately if the condition is already true\n// or later, whenever it becomes true\nawait awaitState(store, isLoadedSelector)\n\n// state.matrix.isLoaded is true!\n```\n\n## API\n\n`awaitState(store, selector)`\n\n- `store` is a Redux store\n- `selector` is a Redux selector that returns a boolean value\n\nReturns a `Promise` that resolves when `selector` returns `true`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexodusmovement%2Fawait-state","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexodusmovement%2Fawait-state","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexodusmovement%2Fawait-state/lists"}