Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

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

@MikhailSuendukov MikhailSuendukov requested a review from a team as a code owner June 7, 2024 15:33
@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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants