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
Possible Solution
應該是我把打衛星雲圖API所需要的參數(經緯度),都寫在GameContent這個父元件,而子元件taskA與taskB會先掛載完後,GameContent才會把參數傳進去,才顯示衛星雲圖。這中間的時間差會造成:當子元鍵掛載完時,有一小段時間是還沒傳入新的經緯度的,所以衛星雲圖不會更新,因此還停留在前一題的衛星雲圖。
Expected Behavior
切換題目時,不會殘留前一題的衛星雲圖
Current Behavior
切換題目後,會殘留前一題的衛星星雲約0.5秒,才會切換
To Reproduce
Steps to reproduce the behavior:
以上兩個行為,都會觸發bug
Possible Solution
應該是我把打衛星雲圖API所需要的參數(經緯度),都寫在GameContent這個父元件,而子元件taskA與taskB會先掛載完後,GameContent才會把參數傳進去,才顯示衛星雲圖。這中間的時間差會造成:當子元鍵掛載完時,有一小段時間是還沒傳入新的經緯度的,所以衛星雲圖不會更新,因此還停留在前一題的衛星雲圖。
這個解法應該跟 #21 類似?應該要將「掛載畫面」設在「撈圖資資料」之後,也就是當圖資資料撈完後,才開始掛載畫面。
Context (Environment)
對於使用者而言,0.5秒的殘留會造成使用者體驗不佳。
Additional context
Add any other context about the problem here.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
The text was updated successfully, but these errors were encountered: