{"id":16623913,"url":"https://github.com/markcda/dioxus-v04-optional-hooks","last_synced_at":"2025-09-08T06:31:07.993Z","repository":{"id":241624795,"uuid":"807331464","full_name":"markcda/dioxus-v04-optional-hooks","owner":"markcda","description":"Optional futures for Dioxus 0.4.0-0.4.3","archived":true,"fork":false,"pushed_at":"2024-11-04T07:43:28.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-29T17:27:47.621Z","etag":null,"topics":["dioxus","dioxus-desktop","dioxus-web","hooks"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/markcda.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-28T22:38:23.000Z","updated_at":"2025-01-27T01:49:29.000Z","dependencies_parsed_at":"2024-07-08T14:33:32.577Z","dependency_job_id":"6e746d15-2874-4cd4-aaaf-7589bbd9cf3a","html_url":"https://github.com/markcda/dioxus-v04-optional-hooks","commit_stats":null,"previous_names":["markcda/dioxus-v04-optional-hooks"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/markcda/dioxus-v04-optional-hooks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Fdioxus-v04-optional-hooks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Fdioxus-v04-optional-hooks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Fdioxus-v04-optional-hooks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Fdioxus-v04-optional-hooks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markcda","download_url":"https://codeload.github.com/markcda/dioxus-v04-optional-hooks/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markcda%2Fdioxus-v04-optional-hooks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274145948,"owners_count":25230114,"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-09-08T02:00:09.813Z","response_time":121,"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":["dioxus","dioxus-desktop","dioxus-web","hooks"],"created_at":"2024-10-12T03:25:22.633Z","updated_at":"2025-09-08T06:31:07.677Z","avatar_url":"https://github.com/markcda.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dioxus-v04-optional-hooks\n\nSimplifies future hooks that should be reusable.\n\n## Usage\n\n```rust,ignore\nuse dioxus_v04_optional_hooks::{FutureHook, StartupGuard};\nuse dioxus::prelude::*;\n\n...\n\nlet project_selected = use_state(cx, || 0);\nlet get_project_card_fut = FutureHook::new(cx, StartupGuard::Enable, (project_selected,), |(project_selected,)| async move {\n    get_project_info(*project_selected).await\n});\n\n...\n\ncx.render({\n    get_project_card_fut.lazy_fetch();\n    if let Some(project_card) = get_project_card_fut.read_clone(false) {\n        ...\n    }\n})\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkcda%2Fdioxus-v04-optional-hooks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkcda%2Fdioxus-v04-optional-hooks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkcda%2Fdioxus-v04-optional-hooks/lists"}