Open Grapeve opened 1 year ago
This will not happen if I directly modify the value of the text by getting the text component instance through ref.
textRef.value.text = xxx
. There won't be any warming here
This looks strange because the text component is not related to the Loader
You can try using the text attribute <text: text="eventName"/>
to see if the problem is resolved, and I will use your use case to conduct a test
using the text attribute <text: text="eventName"/>
will give the same warmming.
It's quite strange. If I only write one listening event @click="(evt) => evtHandler('click', evt)"
. When I first click the sprite, changing the eventName
value of text component, it will also have warning on console about repeated loading, but only once.
Just the picture I showed above, If you quickly move and leave the mushroom sprite, you will find animatedSprite feels like it's stationary
The following image is two examples of the official website. I have written these two examples in one application. The text value
eventName
of the text component is responsive by usingref
of vue. Changing the value ofeventName
in the script setup resulted in repeated loading of the loader component.my code: