Skip to content
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

EntityClass companion object constructor is not invoked because it's not referenced anywhere #1707

Open
Nek-12 opened this issue Mar 19, 2023 · 0 comments

Comments

@Nek-12
Copy link

Nek-12 commented Mar 19, 2023

I'm subscribing to EntityHooks in an init { } block of my companion object extending UUIDEntityClass of an Entity.
However, the init() block is not invoked because it seems that the library does not reference it at all.
This leads to all EntityHooks not being invoked.
I understand that this is a normal behavior for lazy initialization of companion objects, but what would be a better place to put my EntityHook initialization in from an architectural standpoint?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant