From 7e5e03b1ab19163b7aaf401c2a128d6dc0a85b56 Mon Sep 17 00:00:00 2001 From: Maccesch Date: Wed, 15 Jan 2025 21:13:35 -0500 Subject: [PATCH] release 0.15.5 --- CHANGELOG.md | 7 +++++++ Cargo.toml | 2 +- src/sync_signal.rs | 6 +++--- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f10ad3e..d9f81f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,13 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [0.15.5] - 2025-01-15 + +### Fix 🍕 + +- `sync_signal` with `immediate = true` now syncs the signals on the server once initially. This fixes `use_color_mode` + with cookies enabled to give wrong results during SSR. + ## [0.15.4] - 2025-01-15 ### Fixes 🍕 diff --git a/Cargo.toml b/Cargo.toml index 2094723..55bacaf 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "leptos-use" -version = "0.15.4" +version = "0.15.5" edition = "2021" authors = ["Marc-Stefan Cassola"] categories = ["gui", "web-programming", "wasm"] diff --git a/src/sync_signal.rs b/src/sync_signal.rs index b6cf029..31cb1b7 100644 --- a/src/sync_signal.rs +++ b/src/sync_signal.rs @@ -187,11 +187,11 @@ use std::rc::Rc; /// # view! { } /// # } /// ``` -/// +/// /// ## Server-Side Rendering -/// +/// /// On the server the signals are not continuously synced. If the option `immediate` is `true`, the -/// signals are synced once initially. If the option `immediate` is `false`, then this function +/// signals are synced once initially. If the option `immediate` is `false`, then this function /// does nothing. pub fn sync_signal( left: impl Into>,