Thank you, that clarifies my mistake in no uncertain terms.
I have to say that sometimes it's really hard for me to recognize things around React. Things for me are far more intuitive with good old selectors in a more native environment like shown in your example. However, it is wonderful that GSAP minimizes the use of useRefs by useContext() so wonderfully. I'm really grateful, as it absolutely reduces error sources and code quantity for me.
Translated with www.DeepL.com/Translator (free version)