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

stored ref from useEffect is detatched from DOM #200

Open
JRJurman opened this issue Aug 27, 2022 · 0 comments
Open

stored ref from useEffect is detatched from DOM #200

JRJurman opened this issue Aug 27, 2022 · 0 comments

Comments

@JRJurman
Copy link
Member

Summary

This needs a more minimal example, but after saving the ref from a useEffect, looking at that ref later points to a detatched version of the element.

The specific goal here was to verify the text change from a textarea, but the ref still points to the old version of the element:
image

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

No branches or pull requests

1 participant