Skip to content

fix(typography): fix conditional hook call in Heading - #50

Merged
wangdicoder merged 1 commit into
masterfrom
dev
Mar 13, 2026
Merged

wangdicoder merged 1 commit into
masterfrom
dev

Conversation

@wangdicoder

Copy link
Copy Markdown
Owner

Summary

  • Move useContext above the early return in Heading component to fix the react-hooks/rules-of-hooks eslint error

Changeset

  • Patch bump for @tiny-design/react (fixed versioning bumps all packages together)

Test plan

  • pnpm lint passes with 0 errors

@wangdicoder
wangdicoder merged commit 582bc46 into master Mar 13, 2026
1 check passed
@github-actions github-actions Bot mentioned this pull request Mar 13, 2026
@wangdicoder
wangdicoder deleted the dev branch March 22, 2026 10:33
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.

1 participant