Tram-One / tram-one

🚋 Legacy View Framework For Vanilla Javascript
http://tram-one.io/
MIT License
36 stars 8 forks source link

stored ref from useEffect is detatched from DOM #200

Open JRJurman opened 2 years ago

JRJurman commented 2 years ago

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