You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 using ref of vue. Changing the value of eventName in the script setup resulted in repeated loading of the loader component.
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
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:
The text was updated successfully, but these errors were encountered: