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
When I call form() in MyCarousel components. The console prints the old "x" value. This value is the value when MyCarousel was just initialized, but this value has been updated, but the latest one has not been printed. Why? Aren't they in the same scope?
please see below screenshot, it looks so strange.
Is there anyway I can get the lastest value of x?
The text was updated successfully, but these errors were encountered:
Below is my code
When I call form() in MyCarousel components. The console prints the old "x" value. This value is the value when MyCarousel was just initialized, but this value has been updated, but the latest one has not been printed. Why? Aren't they in the same scope?
please see below screenshot, it looks so strange.
Is there anyway I can get the lastest value of x?
The text was updated successfully, but these errors were encountered: