stack

Home > @infiniteobjects/models > BaseFirebaseEntity > onInit

BaseFirebaseEntity.onInit() method

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

Remarks

onInit() hook is synchronous.