|
@@ -47,13 +47,12 @@ pub trait HistoryProvider<R: Routable> {
|
|
|
///
|
|
|
/// ```rust
|
|
|
/// # use dioxus_router::prelude::*;
|
|
|
- /// # use serde::{Deserialize, Serialize};
|
|
|
/// # use dioxus::prelude::*;
|
|
|
/// # #[inline_props]
|
|
|
/// # fn Index(cx: Scope) -> Element { todo!() }
|
|
|
/// # #[inline_props]
|
|
|
/// # fn OtherPage(cx: Scope) -> Element { todo!() }
|
|
|
- /// #[derive(Clone, Serialize, Deserialize, Routable, Debug, PartialEq)]
|
|
|
+ /// #[derive(Clone, Routable, Debug, PartialEq)]
|
|
|
/// enum Route {
|
|
|
/// #[route("/")]
|
|
|
/// Index {},
|
|
@@ -86,11 +85,10 @@ pub trait HistoryProvider<R: Routable> {
|
|
|
///
|
|
|
/// ```rust
|
|
|
/// # use dioxus_router::prelude::*;
|
|
|
- /// # use serde::{Deserialize, Serialize};
|
|
|
/// # use dioxus::prelude::*;
|
|
|
/// # #[inline_props]
|
|
|
/// # fn Index(cx: Scope) -> Element { todo!() }
|
|
|
- /// #[derive(Clone, Serialize, Deserialize, Routable, Debug, PartialEq)]
|
|
|
+ /// #[derive(Clone, Routable, Debug, PartialEq)]
|
|
|
/// enum Route {
|
|
|
/// #[route("/")]
|
|
|
/// Index {},
|
|
@@ -113,13 +111,12 @@ pub trait HistoryProvider<R: Routable> {
|
|
|
///
|
|
|
/// ```rust
|
|
|
/// # use dioxus_router::prelude::*;
|
|
|
- /// # use serde::{Deserialize, Serialize};
|
|
|
/// # use dioxus::prelude::*;
|
|
|
/// # #[inline_props]
|
|
|
/// # fn Index(cx: Scope) -> Element { todo!() }
|
|
|
/// # #[inline_props]
|
|
|
/// # fn OtherPage(cx: Scope) -> Element { todo!() }
|
|
|
- /// #[derive(Clone, Serialize, Deserialize, Routable, Debug, PartialEq)]
|
|
|
+ /// #[derive(Clone, Routable, Debug, PartialEq)]
|
|
|
/// enum Route {
|
|
|
/// #[route("/")]
|
|
|
/// Index {},
|
|
@@ -146,13 +143,12 @@ pub trait HistoryProvider<R: Routable> {
|
|
|
///
|
|
|
/// ```rust
|
|
|
/// # use dioxus_router::prelude::*;
|
|
|
- /// # use serde::{Deserialize, Serialize};
|
|
|
/// # use dioxus::prelude::*;
|
|
|
/// # #[inline_props]
|
|
|
/// # fn Index(cx: Scope) -> Element { todo!() }
|
|
|
/// # #[inline_props]
|
|
|
/// # fn OtherPage(cx: Scope) -> Element { todo!() }
|
|
|
- /// #[derive(Clone, Serialize, Deserialize, Routable, Debug, PartialEq)]
|
|
|
+ /// #[derive(Clone, Routable, Debug, PartialEq)]
|
|
|
/// enum Route {
|
|
|
/// #[route("/")]
|
|
|
/// Index {},
|
|
@@ -180,13 +176,12 @@ pub trait HistoryProvider<R: Routable> {
|
|
|
///
|
|
|
/// ```rust
|
|
|
/// # use dioxus_router::prelude::*;
|
|
|
- /// # use serde::{Deserialize, Serialize};
|
|
|
/// # use dioxus::prelude::*;
|
|
|
/// # #[inline_props]
|
|
|
/// # fn Index(cx: Scope) -> Element { todo!() }
|
|
|
/// # #[inline_props]
|
|
|
/// # fn OtherPage(cx: Scope) -> Element { todo!() }
|
|
|
- /// #[derive(Clone, Serialize, Deserialize, Routable, Debug, PartialEq)]
|
|
|
+ /// #[derive(Clone, Routable, Debug, PartialEq)]
|
|
|
/// enum Route {
|
|
|
/// #[route("/")]
|
|
|
/// Index {},
|
|
@@ -214,13 +209,12 @@ pub trait HistoryProvider<R: Routable> {
|
|
|
///
|
|
|
/// ```rust
|
|
|
/// # use dioxus_router::prelude::*;
|
|
|
- /// # use serde::{Deserialize, Serialize};
|
|
|
/// # use dioxus::prelude::*;
|
|
|
/// # #[inline_props]
|
|
|
/// # fn Index(cx: Scope) -> Element { todo!() }
|
|
|
/// # #[inline_props]
|
|
|
/// # fn OtherPage(cx: Scope) -> Element { todo!() }
|
|
|
- /// #[derive(Clone, Serialize, Deserialize, Routable, Debug, PartialEq)]
|
|
|
+ /// #[derive(Clone, Routable, Debug, PartialEq)]
|
|
|
/// enum Route {
|
|
|
/// #[route("/")]
|
|
|
/// Index {},
|
|
@@ -244,13 +238,12 @@ pub trait HistoryProvider<R: Routable> {
|
|
|
///
|
|
|
/// ```rust
|
|
|
/// # use dioxus_router::prelude::*;
|
|
|
- /// # use serde::{Deserialize, Serialize};
|
|
|
/// # use dioxus::prelude::*;
|
|
|
/// # #[inline_props]
|
|
|
/// # fn Index(cx: Scope) -> Element { todo!() }
|
|
|
/// # #[inline_props]
|
|
|
/// # fn OtherPage(cx: Scope) -> Element { todo!() }
|
|
|
- /// #[derive(Clone, Serialize, Deserialize, Routable, Debug, PartialEq)]
|
|
|
+ /// #[derive(Clone, Routable, Debug, PartialEq)]
|
|
|
/// enum Route {
|
|
|
/// #[route("/")]
|
|
|
/// Index {},
|