Behavior lifecycle function onCreated called early #3634
Replies: 3 comments 3 replies
-
This is because |
Beta Was this translation helpful? Give feedback.
-
That is not a feature request, that's a bug report, the bug being that object data is not accessible (whether read or write) in that function while it could and should. This shouldn't have been moved into a discussion. |
Beta Was this translation helpful? Give feedback.
-
Converted into issue on #3663 |
Beta Was this translation helpful? Give feedback.
-
Description
Not sure if this should be considered a bug, but the behavior lifecycle
onCreated
function is called before the object is completely initialized. For example, it does not yet contain its creation position. A workaround for this is to put an event with a trigger once in the pre-/postevents lifecycle functions but this is not viable since if an object is created in events, the behavior will be in an invalid state until the end of the events is reached (for the lifecycle functions to be called).To Reproduce
Beta Was this translation helpful? Give feedback.
All reactions