Closed samreid closed 2 years ago
I'd like to defer work on this until resuming work on the sim.
So far, I haven't found a way around this problem. You can trigger one case by dragging the top medium slider all the way to the right. It seems like a roundoff error. But I tried adding deep equals for medium and substance, and looked for a way to combine the medium property with mediumIndexProperty. Neither seems to help, there is still numerical difference. Here's my patch so far:
Our project is OK with re-entrant properties, I've added references from the sites back to here. Closing.
In https://github.com/phetsims/axon/issues/179 we identified Property instances that are re-entrant. In this context, re-entrant means a change in value of the Property causes (via listeners) another change in the value of the same Property instance.
Re-entry can occur for at least 3 different reasons, which are document here: https://github.com/phetsims/axon/issues/179#issuecomment-414717687
This issue is to search through the Properties with
reentrant: true
and:(a) confirm that the Property really requires
reentrant: true
(b) identify the reason for the reentry (may be one of the 3 classes above) (c-i) see if the code can be rewritten so it no longer requires a reentrant Property, or document why the code uses a re-entrant Property or (c-ii) document why the code uses a re-entrant PropertyInitially assigning to the responsible-dev for this repo, though it is unclear what the priority should be for this issue.