Closed zepumph closed 1 year ago
Something like this for the usage:
phetioValueType: ReferenceDataTypeIO( ArrayIO( EnumerationIO( GraphType ) ), options.graphSets, 'lodashDeep' )
@pixelzoom proposed an alternate solution for Calculus Grapher which seems very appropriate. We may one day have a need for this type, so I'll leave the issue open, but it doesn't block anything at the moment.
Also over in Greenhouse, we ran into the same thing, but created ReferenceArrayIO specifically. I don't think we need this much generality. Closing
Over in https://github.com/phetsims/studio/issues/291, @pixelzoom and @samreid and I realized that we need to support serializing arrays and then deserializing them back to their exact array references. This patch helps get us close, but @samreid will need to take some time to clean it up before commit, but we feel confident that it will fix the graphSetProperty serialization that is blocking Calculus Grapher.