Skip to content

Unovis React: Fixing ref initialization#344

Merged
reb-dev merged 2 commits intof5:mainfrom
rokotyan:fix/react-ref-initialization
Mar 7, 2024
Merged

Unovis React: Fixing ref initialization#344
reb-dev merged 2 commits intof5:mainfrom
rokotyan:fix/react-ref-initialization

Conversation

@rokotyan
Copy link
Contributor

@rokotyan rokotyan commented Mar 5, 2024

Previously component refs were undefined due to the component initialization cycle. Changing the ref logic to use a getter to always return the latest instance of the component.

Copy link
Contributor

@reb-dev reb-dev left a comment

Choose a reason for hiding this comment

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

@rokotyan Nice! Thanks for the fix.

@reb-dev reb-dev merged commit a6e33e9 into f5:main Mar 7, 2024
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.

2 participants