diff --git a/Cargo.lock b/Cargo.lock index 60241bd..c9b2651 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -297,7 +297,7 @@ dependencies = [ [[package]] name = "bard" -version = "0.3.10" +version = "0.3.11" dependencies = [ "dioxus", "tavern", diff --git a/bard/Cargo.toml b/bard/Cargo.toml index 04e38af..7ae14ff 100644 --- a/bard/Cargo.toml +++ b/bard/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bard" -version = "0.3.10" +version = "0.3.11" edition = "2024" description = "Dioxus components that will display a Tavern blogging system Blog." repository = "/CyberMages/tavern" diff --git a/bard/src/components/list.rs b/bard/src/components/list.rs index f861848..7471b06 100644 --- a/bard/src/components/list.rs +++ b/bard/src/components/list.rs @@ -80,13 +80,13 @@ pub fn BlogList(tags: Signal>, children: Element) -> Element // Retrieve the provided settings from context. let settings = use_context::(); - let list = use_server_future(move || + let list = use_resource(move || { let tags = tags(); let categories: Vec = tags.iter().cloned().collect(); async move { get_blog_list(categories).await } - })?; + }); rsx! {