Home > @infiniteobjects/models > BaseFirebaseEntity > onInit
Called internally after a document is: - Returned from the DB. - A new Instance is created - On new documents after the doc.OnCreate()
hook.
Signature:
/** @virtual */
onInit(): void;
Returns:
void
onInit()
hook is synchronous.