Closed marlitas closed 2 months ago
@marlitas and I got around the problem with this patch. @marlitas, please note in this issue if you discover any other problems with the state setting. Perhaps apply this patch, and see if any other issues occur?
I'll report back here once we have progress on https://github.com/phetsims/phet-io/issues/1661. Just to be clear, for this specific MSAB case, the order dependency is:
meanShareAndBalance.fairShareScreen.model.notepadModeProperty
needs to have its new value, before meanShareAndBalance.fairShareScreen.model.plate1.snacksOnNotepadPlate
fires its listeners from adding new snacks.
https://github.com/phetsims/phet-io/issues/1661 has been completed. @marlitas can you please review and ensure that MSAB PhET-iO state is working.
Yes this is great! Thanks for turning that assertion on and doing this work. Ready to close!
Connected to https://github.com/phetsims/phet-io/issues/1661. Currently ObservableArray listeners are firing unexpectedly before the notepadModeProperty value has been set in state.