Closed Nancy-Salpepi closed 6 months ago
I can reproduce this problem. The dot gets set correctly on the 1st state set. But on the 2nd state set, it disappears.
This patch works around the problem. It identifies that the root of the problem is reference vs value identity in the selected projectile. Not sure if we should add an equals function or if we need to go upstream fix the reference:
I added a workaround to ensure the reference remains valid (by reference and not just by value) after phet-io state set. @matthew-blackman can you please review?
@matthew-blackman and I found a better solution and it is working well in our testing. Closing.
Test device MacBook Air M1 chip and iPad 9th generation
Operating System iOS 14.3.1 and iPadOS 17
Browser Safari and chrome
Problem description For https://github.com/phetsims/qa/issues/1060, in the State wrapper on the first 3 screens only-- the white dot to indicate the last projectile launched disappears in the downstream sim with the set state rate at its default value. I don't see this issue, if set state rate = 0 and then I press the Set State Now button. I also don't see this issue on the Sampling Screen.
Steps to reproduce
Visuals
https://github.com/phetsims/projectile-data-lab/assets/87318828/13b48134-6a8b-4420-8b50-8c35647c147a