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
Dmitriy Kirakosyan (DmitriyKirakosyan) merged 3 commits into
masterfrom
update-ref-setting
Jul 3, 2024
Merged

Improve root component ref definition#2705
Dmitriy Kirakosyan (DmitriyKirakosyan) merged 3 commits into
masterfrom
update-ref-setting

Conversation

@MikhailSuendukov

@MikhailSuendukovMikhailSuendukov commented Jun 7, 2024

Copy link
Copy Markdown
Contributor

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

Comment threadCodePush.js Outdated
Sign up for freeto 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

@MikhailSuendukov@DmitriyKirakosyan@DergachevE@akosiakevych