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
When I want to clone a component, and with this I don't mean just creating the same component with the same starting variables, but a clone of the current state, with possibly deep cloning and more elaborate clone decisions, I may want to skip init and start.
This is not different from the copy constructor of C++, which does not execute the normal constructor because with a copy u may prefer to do some other things.
This means that in this case it should not be needed to call init and start if u don't want to and can instead be harmful and u may have to do more work in order to deinitialize stuff that is done in the init and start method.
It would be interesting to have a clone method on the component itself in the official API, but I think it would still be interesting to have the chance to add a component without init and start to allow for custom features to be made, should not hurt if u are doing it on purpose.
The text was updated successfully, but these errors were encountered:
When I want to clone a component, and with this I don't mean just creating the same component with the same starting variables, but a clone of the current state, with possibly deep cloning and more elaborate clone decisions, I may want to skip init and start.
This is not different from the copy constructor of C++, which does not execute the normal constructor because with a copy u may prefer to do some other things.
This means that in this case it should not be needed to call init and start if u don't want to and can instead be harmful and u may have to do more work in order to deinitialize stuff that is done in the init and start method.
It would be interesting to have a clone method on the component itself in the official API, but I think it would still be interesting to have the chance to add a component without init and start to allow for custom features to be made, should not hurt if u are doing it on purpose.
The text was updated successfully, but these errors were encountered: