{"id":17472477,"url":"https://github.com/sleeplessbyte/react-native-use-idle-once","last_synced_at":"2025-10-18T09:45:08.076Z","repository":{"id":38884533,"uuid":"268190279","full_name":"SleeplessByte/react-native-use-idle-once","owner":"SleeplessByte","description":"Hook to execute a callback once, once the system is idle.","archived":false,"fork":false,"pushed_at":"2023-01-27T04:42:13.000Z","size":1069,"stargazers_count":1,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-10T06:04:07.895Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":false,"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/SleeplessByte.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-05-31T01:42:02.000Z","updated_at":"2022-03-28T14:07:49.000Z","dependencies_parsed_at":"2023-02-15T05:32:19.773Z","dependency_job_id":null,"html_url":"https://github.com/SleeplessByte/react-native-use-idle-once","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/SleeplessByte/react-native-use-idle-once","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleeplessByte%2Freact-native-use-idle-once","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleeplessByte%2Freact-native-use-idle-once/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleeplessByte%2Freact-native-use-idle-once/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleeplessByte%2Freact-native-use-idle-once/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SleeplessByte","download_url":"https://codeload.github.com/SleeplessByte/react-native-use-idle-once/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SleeplessByte%2Freact-native-use-idle-once/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279505977,"owners_count":26181700,"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","status":"online","status_checked_at":"2025-10-18T02:00:06.492Z","response_time":62,"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-10-18T17:18:43.764Z","updated_at":"2025-10-18T09:45:08.030Z","avatar_url":"https://github.com/SleeplessByte.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# react-native-use-idle-once\n\nHook to report once interactions have ran (idle) or to run a callback once interactions have ran (idle).\n\n## Installation\n\n```shell\nyarn install react-native-use-idle-once\n```\n\n## Usage\n\nRe-render once, once it's idle.\n\n```typescript\n\n/**\n * Uses the interaction manager to force a re-render of components that include\n * this hook, for example to start new interactions. Only reports once.\n */\nimport { useIdleOnce } from 'react-native-use-idle-once'\n```\n\nCall a callback once, once it's idle.\n\n```typescript\n\n/**\n * Uses the interaction manager to run the callback once the interactions have\n * finished running; automatically cancelled if the component this hook is used\n * in un-mounts before that.\n *\n * Re-runs for each callback, so make sure the callback passed in has a stable\n * identity, unless you want it to run perpetually.\n *\n * @param callback the callback to run after interactions\n */\nimport { useIdleCallbackOnce } from 'react-native-use-idle-once'\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleeplessbyte%2Freact-native-use-idle-once","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsleeplessbyte%2Freact-native-use-idle-once","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsleeplessbyte%2Freact-native-use-idle-once/lists"}