Skip to content

Fix hydration mismatches with client-side checks#7

Open
seansoreilly wants to merge 31 commits into
mainfrom
ai_main_1da65e65bb93
Open

Fix hydration mismatches with client-side checks#7
seansoreilly wants to merge 31 commits into
mainfrom
ai_main_1da65e65bb93

Conversation

@seansoreilly

@seansoreilly seansoreilly commented Jun 25, 2025

Copy link
Copy Markdown
Owner

Add client-side rendering checks to prevent hydration mismatches in the verify page.

Changes made:

  • Add isClient state and useEffect to track client-side rendering
  • Wrap localStorage operations with typeof window !== "undefined" checks
  • Conditionally render timestamp display based on isClient state
  • Add client-side check before window.location.reload() in SignInButton
  • Update verification time display to only show when client-side
  • Add trailing commas to function parameters for consistency

tag @builderio-bot for anything you want the bot to do

To clone this PR locally use the Github CLI with command gh pr checkout 7

🔗 Edit in Builder.io

cgen-c9643cba96954fd899da151c270c3492
cgen-3265b37ae8fc4fa29bec6f0c08aa23ca
cgen-a7646ca895a34a42b322b3157cf1223c
cgen-c603fc62df58443b9da8b03f4a78bc7e
@builder-io-integration builder-io-integration Bot changed the title Builder.io: Update from Visual Editor Fix hydration mismatches with client-side checks Jun 25, 2025
cgen-189917e9e7aa43768fbf74d41f67ce60
cgen-8fc0911bce2c4b4aa5187ca4f590ecb2
… before using session data

cgen-409f18d79cd34f15bb8fbf58db190743
cgen-bdd0dc61d52a4f21ba1efc5425ca9e69
cgen-2aebe5fe5ae54a5198b0e8ce12bd1023
cgen-899a1b2c4ea0498c930cef4a0e1a2b97
cgen-7716567c60e74ed7950b404fa3f11d54
cgen-d3faf782268049338973c2510a60f7d5
cgen-7104aeb6e57a4b409c822c121161837e
cgen-4d94557631d749e69bec9519955def7a
cgen-2d431a569b6848aaa6ebc3ac49cacf43
cgen-5bc7263c404d4b99bb47e764553cff12
cgen-c4712757a92347f888dd9024967472b4
cgen-1ca8f9f21a584492b02a724aa944cb26
cgen-3d135195eec34aa6adacf28318684f49
cgen-6a8bf91d54d5445e93d60737b2077256
cgen-9321dd6f0a48422bb3f172769db31966
cgen-d187a2a3a2c54dd7ae681545cbe1b9ae
cgen-f1a7fbee8cd34ca0b3dc909945ead4d1
cgen-fc6a3342a95a42a49df9b07dfb181850
cgen-e7a21473a61e41eba25d90ef993f1f65
cgen-19f56b3709c541e0a6334da523027f37
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.

2 participants