-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createScene on same selector as an old dismounted (but not removed) Scene -> Node is not mounted #330
Comments
Dismounting a scene and removing a scene are two separate things, if you are finished with a particular scene you should call removeScene. |
Got it, thanks @jd-carroll. I remembered eventually that I was doing things that way because Note to others, current behaviour is to dismount an existing scene on the same selector if one exists, which fails if that Scene has already been dismounted. |
Closing as the new removeScene functionality seems to have provided the needed functionality. |
@michaelobriena this actually still isn't fixed.. While what you say is true the new removeScene functionality is there, #377 still blocks this |
@jd-carroll Is there a known workaround or fix for this? I'm also encountering the issue where calling This is in an embedded context with routing so it's necessary to add and remove scenes frequently (in Meteor @gadicc - perhaps you have a solution as well?). |
|
@JeremySaks The reason is that the |
@jd-carroll Exactly. There simply isn't a command for that right now. |
Given:
I get:
That's here:
So I guess the ref isn't cleaned up properly on dismount. Is this
Scene.dismount()
's responsibility though? I don't recall if it's a new method or not, but callingFamousEngine.removeScene(scene1);
works as expected.The text was updated successfully, but these errors were encountered: