diff --git a/leptos/Cargo.toml b/leptos/Cargo.toml index 42e5834d3..208bb88b6 100644 --- a/leptos/Cargo.toml +++ b/leptos/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "leptos" -version = "0.0.14" +version = "0.0.15" edition = "2021" authors = ["Greg Johnston"] license = "MIT" @@ -13,7 +13,7 @@ leptos_core = { path = "../leptos_core", default-features = false, version = "0. leptos_dom = { path = "../leptos_dom", default-features = false, version = "0.0.12" } leptos_macro = { path = "../leptos_macro", default-features = false, version = "0.0.13" } leptos_reactive = { path = "../leptos_reactive", default-features = false, version = "0.0.12" } -leptos_server = { path = "../leptos_server", default-features = false, version = "0.0.13" } +leptos_server = { path = "../leptos_server", default-features = false, version = "0.0.15" } [features] default = ["csr", "serde"] diff --git a/leptos_server/Cargo.toml b/leptos_server/Cargo.toml index 66f191912..e0248ac83 100644 --- a/leptos_server/Cargo.toml +++ b/leptos_server/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "leptos_server" -version = "0.0.13" +version = "0.0.15" edition = "2021" authors = ["Greg Johnston"] license = "MIT" diff --git a/leptos_server/src/lib.rs b/leptos_server/src/lib.rs index 1d064aa01..70adc75ea 100644 --- a/leptos_server/src/lib.rs +++ b/leptos_server/src/lib.rs @@ -294,7 +294,7 @@ where /// let pending = save_data.pending(); /// // how many times the action has run /// // useful for reactively updating something else in response to a `dispatch` and response -/// let version = save_data.version(); +/// let version = save_data.version; /// /// // before we do anything /// assert_eq!(input(), None); // no argument yet @@ -346,7 +346,8 @@ where I: 'static, O: 'static, { - version: RwSignal, + /// How many times the action has successfully resolved. + pub version: RwSignal, input: RwSignal>, value: RwSignal>, pending: RwSignal, @@ -394,11 +395,6 @@ where self.value.read_only() } - /// How many times the action has successfully resolved. - pub fn version(&self) -> ReadSignal { - self.version.read_only() - } - /// The URL associated with the action (typically as part of a server function.) /// This enables integration with the `ActionForm` component in `leptos_router`. pub fn url(&self) -> Option<&str> { @@ -442,7 +438,7 @@ where /// let pending = save_data.pending(); /// // how many times the action has run /// // useful for reactively updating something else in response to a `dispatch` and response -/// let version = save_data.version(); +/// let version = save_data.version; /// /// // before we do anything /// assert_eq!(input(), None); // no argument yet