Skip to content

fix(demos): align lucide-react across workspaces (grading-papers hydration)#3164

Merged
caio-pizzol merged 1 commit intomainfrom
caio/fix-grading-papers-hydration
May 5, 2026
Merged

fix(demos): align lucide-react across workspaces (grading-papers hydration)#3164
caio-pizzol merged 1 commit intomainfrom
caio/fix-grading-papers-hydration

Conversation

@caio-pizzol
Copy link
Copy Markdown
Contributor

The grading-papers Next.js demo's smoke test was failing on every PR with a React hydration error. Server and client rendered two different versions of the Lucide Book icon's SVG path:

  • SSR: `d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18..."` (post-0.454)
  • CSR: `d="M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H20v20H6.5..."` (0.400)

The workspace had three different lucide-react versions pinned (0.400.0, 0.454.0, 0.511.0). The Book icon's SVG path changed between 0.400.0 and 0.454.0, which is what surfaced in the hydration diff. Bumped `demos/grading-papers` and `demos/collaborative-agent/client` to `^0.511.0` to match the third workspace (`examples/advanced/headless-toolbar/react-shadcn`).

The lockfile now resolves to a single `lucide-react@0.511.0` (across React 18 / 19 variants), removing the multi-version surface that allowed the bundles to disagree.

Verified: `pnpm install` resolves cleanly to one lucide-react major; the Book icon SVG path is identical across all three React variants in node_modules; `pnpm --dir demos/grading-papers run build` completes; `pnpm --filter superdoc build` clean.

…s hydration

The grading-papers Next.js demo's smoke test was failing on every PR
with a React hydration error: SSR and CSR rendered two different
versions of the Lucide Book icon's SVG path. The workspace had three
different lucide-react versions pinned (0.400.0, 0.454.0, 0.511.0).
The Book icon path changed between 0.400.0 (old) and 0.454.0+ (new),
which is what surfaced in the diff.

Bumped demos/grading-papers and demos/collaborative-agent/client to
^0.511.0 to match examples/advanced/headless-toolbar/react-shadcn.
The lockfile now resolves to a single lucide-react@0.511.0 across
the three React variants in the workspace, removing the multi-version
surface that allowed SSR vs CSR to disagree.
@caio-pizzol caio-pizzol requested a review from a team as a code owner May 5, 2026 15:54
@caio-pizzol caio-pizzol merged commit d197e88 into main May 5, 2026
20 of 21 checks passed
@caio-pizzol caio-pizzol deleted the caio/fix-grading-papers-hydration branch May 5, 2026 15:55
@codecov-commenter
Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants