You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran into this while looking for something that fires after the Sim is up an running.
In Sim.js:
// @public (phet-io) Emitter for PhET-iO data stream to describe the startup sequencethis.startedSimConstructorEmitter=newEmitter();// @public (phet-io) Emitter for PhET-iO data stream to describe the startup sequencethis.endedSimConstructionEmitter=newEmitter();
Problems here....
(1) One is named "Constructor", the other "Construction". Tricky.
(2) The documentation tells us nothing about when these fire. And it's not at all clear from reading the code: startedSimConstructorEmitter isn't at the very beginning of the constructor. endedSimConstructionEmitter is in async code that appears in start.
(3) Are these for use only by PhET-iO?
The text was updated successfully, but these errors were encountered:
statedSimConstructorEmitter doesn't exist anymore. endedSimConstructionEmitter can be used by anyone like LegendsOfLearnerSupport does. Doc has been improved. Closing
I ran into this while looking for something that fires after the Sim is up an running.
In Sim.js:
Problems here....
(1) One is named "Constructor", the other "Construction". Tricky.
(2) The documentation tells us nothing about when these fire. And it's not at all clear from reading the code:
startedSimConstructorEmitter
isn't at the very beginning of the constructor.endedSimConstructionEmitter
is in async code that appears instart
.(3) Are these for use only by PhET-iO?
The text was updated successfully, but these errors were encountered: