From 92bc4b3929a89c293b1d362cc972468f77e695b0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 1 Jun 2026 12:38:47 +0000 Subject: [PATCH] Version Packages --- .changeset/fix-ssr-hydration-default-history.md | 9 --------- docs/components/ChangelogContent.mdx | 13 +++++++++++++ extensions/plugin-history-sync/CHANGELOG.md | 10 ++++++++++ extensions/plugin-history-sync/package.json | 2 +- 4 files changed, 24 insertions(+), 10 deletions(-) delete mode 100644 .changeset/fix-ssr-hydration-default-history.md diff --git a/.changeset/fix-ssr-hydration-default-history.md b/.changeset/fix-ssr-hydration-default-history.md deleted file mode 100644 index 10f376267..000000000 --- a/.changeset/fix-ssr-hydration-default-history.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@stackflow/plugin-history-sync": patch ---- - -Fix an SSR hydration mismatch that occurred when an activity declared a non-empty `defaultHistory`. - -The staged `defaultHistory` setup navigation was kicked off synchronously inside the `onInit` hook, which runs during the first client render. As a result, the client's first render contained more activities than the server-rendered output, producing a React hydration mismatch. - -The setup navigation is now kicked off from a post-commit effect instead, so the server and the client's first render produce identical output (eliminating the mismatch) while the staged "stacking" setup animation still plays after hydration. diff --git a/docs/components/ChangelogContent.mdx b/docs/components/ChangelogContent.mdx index 61cf6096d..258b2e15c 100644 --- a/docs/components/ChangelogContent.mdx +++ b/docs/components/ChangelogContent.mdx @@ -1,3 +1,16 @@ +## 2026.06.01 + +Fix an SSR hydration mismatch that occurred when an activity declared a non-empty `defaultHistory`. [`b7724e9`](https://github.com/daangn/stackflow/commit/b7724e910b24c5cf188b45dc0e58cae1913248fd) + +The staged `defaultHistory` setup navigation was kicked off synchronously inside the `onInit` hook, which runs during the first client render. As a result, the client's first render contained more activities than the server-rendered output, producing a React hydration mismatch. + +The setup navigation is now kicked off from a post-commit effect instead, so the server and the client's first render produce identical output (eliminating the mismatch) while the staged "stacking" setup animation still plays after hydration. + +Released packages: +- 📦 [@stackflow/plugin-history-sync@1.11.1](https://npmjs.com/package/@stackflow/plugin-history-sync/v/1.11.1) + +--- + ## 2026.05.28 Coerce activity/step params to `string | undefined` at the plugin boundary. [`9b02adb`](https://github.com/daangn/stackflow/commit/9b02adb64b9c97d801d7867cbc35c8343c79c66a) diff --git a/extensions/plugin-history-sync/CHANGELOG.md b/extensions/plugin-history-sync/CHANGELOG.md index 74eaf4e6c..49d3828db 100644 --- a/extensions/plugin-history-sync/CHANGELOG.md +++ b/extensions/plugin-history-sync/CHANGELOG.md @@ -1,5 +1,15 @@ # @stackflow/plugin-history-sync +## 1.11.1 + +### Patch Changes + +- b7724e9: Fix an SSR hydration mismatch that occurred when an activity declared a non-empty `defaultHistory`. + + The staged `defaultHistory` setup navigation was kicked off synchronously inside the `onInit` hook, which runs during the first client render. As a result, the client's first render contained more activities than the server-rendered output, producing a React hydration mismatch. + + The setup navigation is now kicked off from a post-commit effect instead, so the server and the client's first render produce identical output (eliminating the mismatch) while the staged "stacking" setup animation still plays after hydration. + ## 1.11.0 ### Minor Changes diff --git a/extensions/plugin-history-sync/package.json b/extensions/plugin-history-sync/package.json index 0206c3156..3f1af93c3 100644 --- a/extensions/plugin-history-sync/package.json +++ b/extensions/plugin-history-sync/package.json @@ -1,6 +1,6 @@ { "name": "@stackflow/plugin-history-sync", - "version": "1.11.0", + "version": "1.11.1", "repository": { "type": "git", "url": "https://github.com/daangn/stackflow.git",