Closed KatieWoe closed 2 years ago
This is failing an assertion that was added to phetioAPIValidation.ts yesterday by @samreid:
public validatePreferencesModel(): void {
...
// Audio manager, color profile property and localeProperty are supposed to be stateful. All other preferences
// should be phetioState: false so they are not captured in the state
assert && assert( phetioObject.phetioState ===
( phetioObject.phetioID.endsWith( '.colorProfileProperty' ) ||
phetioObject.phetioID.endsWith( '.audioEnabledProperty' ) ||
phetioObject.phetioID.endsWith( '.localeProperty' ) ),
'most preferences should be phetioState: false, key=' + preferencesKey );
This assertion is based on an incorrect assumption. Properties under preferencesModel.simulationModel
should most definitely be stateful.
@samreid addressed this in https://github.com/phetsims/tandem/commit/994c22c0e4b74eabc9f6eb3cdbd727a40f8591e4.
I'll wait for CT to confirm before closing.
CT is happy. Closing.
Also in Basics: