- Remove SSR check from useRadioGroup hook that caused hydration mismatch - Always return default values when context is null (SSR + hydration) - Add useEffect in Radio component to validate context after hydration - Dev-only warning instead of runtime error during hydration Fixes "Radio must be used within a RadioGroup" error on playground page during React hydration. The issue was that during hydration, the context wasn't available yet even though components were properly wrapped. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| CHANGELOG.md | ||
| eslint.config.mjs | ||
| package.json | ||
| tsconfig.json | ||
| tsup.config.ts | ||
| vitest.config.ts | ||