Skip to content

Make sure calls to forwardRef are marked as pure#1192

Merged
thecrypticace merged 2 commits intomasterfrom
fix/pure-forward-ref
Jun 17, 2024
Merged

Make sure calls to forwardRef are marked as pure#1192
thecrypticace merged 2 commits intomasterfrom
fix/pure-forward-ref

Conversation

@thecrypticace
Copy link
Copy Markdown
Contributor

React.forwardRef should always be marked as pure and doing so can help with tree shaking in some build tools.

Fixes #1171

Copy link
Copy Markdown
Member

@RobinMalfait RobinMalfait left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Shall we do a patch release for this one?

@thecrypticace
Copy link
Copy Markdown
Contributor Author

sweet — yeah let's do a patch for this one

@thecrypticace thecrypticace merged commit e2e487f into master Jun 17, 2024
@thecrypticace thecrypticace deleted the fix/pure-forward-ref branch June 17, 2024 13:46
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.

Tree-shakable issues when building a library on top of heroicons and vite

2 participants