realOrMocked
Generic types: | T P |
Internal function used by
use to load the data if it doesn't exist in the store and return a placeholder row if it doesn't
See Also
Presentation
function realOrMocked (
entityState: EntityState<T>,
id: string,
defaultObject: T,
childDefinition: ChildDefinition <P, T>,
): RowProxyDelete & T;
Returns
Parameters
Name | Type | Description |
---|---|---|
entityState | EntityState<T> | the |
id | string | the id to lookup |
defaultObject | T | the default object to return if the id doesn't exist |
childDefinition |
| the |