Skip to content

fix hydration mismatch in clock and countdown#332

Open
voytxt wants to merge 1 commit into
flo-bit:mainfrom
voytxt:main
Open

fix hydration mismatch in clock and countdown#332
voytxt wants to merge 1 commit into
flo-bit:mainfrom
voytxt:main

Conversation

@voytxt

@voytxt voytxt commented Jun 13, 2026

Copy link
Copy Markdown

The number_flow library has problems with hydration, see barvian/number-flow#109.

This PR adds just 6 lines (even if the diff makes it look I changed way more), to check we're in the browser, so the cards don't get rendered on the server.

This is needed, because otherwise the hydration_mismatch svelte error gets thrown and the clock disappears (see #328).

Fixes #328.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: clock is broken

1 participant