Skip to content

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

Open
@Nek-12

Description

@Nek-12

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions