EntityClass companion object constructor is not invoked because it's not referenced anywhere
Open
- Dominant language
- Kotlin
- Stars
- 9.3k
- Forks
- 798
- Avg merge
- 4d 2h
- Merged PRs (30d)
- 26
Description
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?
Contributor guide
Assessment
This issue has not been assessed yet.