phetsims / tandem

Simulation-side code for PhET-iO
MIT License
0 stars 5 forks source link

dynamic elements should only be created by the state engine when setting state #252

Closed samreid closed 2 years ago

samreid commented 2 years ago

When pressing "Preview Sim" in CCK AC studio (after putting CircuitElementNode into PhetioGroups) I get an error when at least one element is in the play area, "dynamic elements should only be created by the state engine when setting state" but it is setting state.

I have phetioState: false for the circuit element nodes. Does this problem relate to the inverted trident pattern?

samreid commented 2 years ago

Charges and fields taught me how to use supportsDynamicState: false, that seems to fix it. Closing.