fix: resolve hydration mismatch on sample load and format block names#26
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
Code Review
This pull request refactors the playground page by removing synchronous sample loading from initial state initializers and deferring it to a useEffect hook. It also updates the block composition display to replace underscores with spaces. The review feedback highlights a potential memory leak and race condition in the asynchronous sample loading hook due to an uncleared setTimeout, and suggests simplifying the block name formatting logic using a regular expression.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
…eout cleanup and regex block name formatting
Resolves #25. Removes direct window.location access, moves query param loading to useEffect, and replaces underscores in block ID names.