Open samreid opened 1 year ago
I tried commenting out large parts of setDeferred
, propertyStateHandlerSingleton
and phetioDependencies
and in testing several sims, it seems like things still worked. Gas properties state did not work (box width not correct in the state), but I reverted and saw that it also did not work. Therefore, I think we should pursue this more. Since the changes span many repos and any observation of bugs may want us to restore the functionality, maybe we should implement this as a "shutoff valve" that we can easily commit and revert if we see trouble. I'll look for an appropriate shutoff valve.
I tried these shutoff valves, and gravity and orbits worked ok:
However, natural selection failed with:
naturalSelection.introScreen.model.bunnyCollection.bunnyGroup.countProperty listener fired and array length differs, count=1, arrayLength=0
https://github.com/phetsims/axon/issues/409 seems like another solution to the order dependency and inconsistent states problems. Can we relax/remove any of the order dependency code now that https://github.com/phetsims/axon/issues/409 is in place?
@zepumph and I discussed it briefly.