Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .changeset/fix-ssr-hydration-default-history.md

This file was deleted.

13 changes: 13 additions & 0 deletions docs/components/ChangelogContent.mdx
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
10 changes: 10 additions & 0 deletions extensions/plugin-history-sync/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion extensions/plugin-history-sync/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading