Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve root component ref definition #2705

Merged
merged 3 commits into from
Jul 3, 2024
Merged

Conversation

MikhailSuendukov
Copy link
Contributor

@MikhailSuendukov MikhailSuendukov commented Jun 7, 2024

After deprecating the reference string for React, such warnings began to appear

ERROR Warning: Component "CodePushComponent" contains the string ref "rootComponent". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead.

Therefore, we migrated to using createRef() instead of string ref.

#2701
AB#107092

CodePush.js Outdated Show resolved Hide resolved
@DmitriyKirakosyan DmitriyKirakosyan merged commit 6c5bdd9 into master Jul 3, 2024
1 check passed
@DmitriyKirakosyan DmitriyKirakosyan deleted the update-ref-setting branch July 3, 2024 01:24
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.

4 participants