Internal API / Function

delayedRegisterEntity

We can't, necessarily, register an entity as part of the provideSmartFeatureEntities() function because it gets called while the Routes are being registered. This means that the getGlobalMarkAndDeleteInit() function will return an empty object when it should return a full MarkAndDeleteInit object.

This function exists to wait until the MarkAndDeleteInit object is fully populated before registering the entity.

Presentation

function delayedRegisterEntity(
  featureName: string,
  entityName: string,
  entityDefinition: SmartEntityDefinition<SmartNgRXRowBase>,
): boolean;

Returns

boolean -

true if the entity can't be registered yet and false if it has this is so it works with the takeWhile() in the calling code.

Parameters

NameTypeDescription
featureName
string

the feature to register

entityName
string

the entity in the feature to register

entityDefinition
SmartEntityDefinition<SmartNgRXRowBase>

the entity definition that was originally passed to provideSmartFeatureEntities()