# useEntity
This composition automatically gathers all the information required to set up an entity!
# url
Automatically fetched from the entities.json
-file. Read more about useEntities
and useEntityObject
.
# icon
Automatically fetched from the entities.json
-file. Read more about useEntities
and useEntityObject
.
# prefix
Automatically fetched from the entities.json
-file. Read more about useEntities
and useEntityObject
.
# entity
/customers
will becustomers
/customers/123-456
will becustomers
/customers/new
will becustomers
/customers/123-456/users/xyz-abc/addresses/new
will beaddresses
/customers/123-456/users/xyz-abc/addresses/567-789
will beaddresses
# entityId
Determined from the route based on the given entity
object. For example:
/customers
will beundefined
/customers/123-456
will be123-456
/customers/new
will beundefined
/customers/123-456/users/xyz-abc/addresses/new
will beundefined
/customers/123-456/users/xyz-abc/addresses/567-789
will be567-789
# isEntityActive
Is the given entity
the same as the activeEntity
from useActiveEntity
# isEntityVisible
If the isEntityActive
the entity is visible.