Updated to use the new Dioxus v0.7.0-rc.1
The system is using the nightly toolchain now due to Dioxus needing it.
This commit is contained in:
@ -182,7 +182,7 @@ pub fn ToggleTag(tag: String, toggled_tags: Signal<HashSet<String>>) -> Element
|
||||
// which tags should be selected based on the current URL, returning both pieces
|
||||
// of data together for clean state management.
|
||||
#[component]
|
||||
pub fn TagSelector(url_tag: ReadOnlySignal<String>,
|
||||
pub fn TagSelector(url_tag: ReadSignal<String>,
|
||||
toggled_tags: Signal<HashSet<String>>) -> Element
|
||||
{
|
||||
// Use use_resource to handle both fetching tags AND initializing selection
|
||||
|
||||
@ -8,7 +8,7 @@ use crate::components::{BlogList, TagSelector};
|
||||
|
||||
/// Blog page
|
||||
#[component]
|
||||
pub fn Blog(tag: ReadOnlySignal<String>) -> Element
|
||||
pub fn Blog(tag: ReadSignal<String>) -> Element
|
||||
{
|
||||
let categories: Signal<HashSet<String>> =
|
||||
use_signal(|| HashSet::new());
|
||||
|
||||
@ -6,7 +6,7 @@ use crate::components::{BlogPost, TagNav};
|
||||
|
||||
/// Blog page
|
||||
#[component]
|
||||
pub fn Post(slug: ReadOnlySignal<String>) -> Element
|
||||
pub fn Post(slug: ReadSignal<String>) -> Element
|
||||
{
|
||||
// Create a copy of the current slug to detect changes.
|
||||
let url_slug = use_signal(|| slug());
|
||||
|
||||
Reference in New Issue
Block a user