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
Hi, I'm being using sometimes lazyValue instead of value because I thought that the object would be created once, but checking the log I see the object is being created everytime the capsule is rebuilt, even if it uses only the first one created.
Do you think that there is a way to only create an object once?
Thanks
UPDATE:
Maybe I'm wrong and it is caused due to a circular dependency.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi, I'm being using sometimes
lazyValue
instead ofvalue
because I thought that the object would be created once, but checking the log I see the object is being created everytime the capsule is rebuilt, even if it uses only the first one created.Do you think that there is a way to only create an object once?
Thanks
UPDATE:
Maybe I'm wrong and it is caused due to a circular dependency.
UPDATE II:
Yes, seems that was the cause.
Beta Was this translation helpful? Give feedback.
All reactions