# 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 be customers
  • /customers/123-456 will be customers
  • /customers/new will be customers
  • /customers/123-456/users/xyz-abc/addresses/new will be addresses
  • /customers/123-456/users/xyz-abc/addresses/567-789 will be addresses

# entityId

Determined from the route based on the given entity object. For example:

  • /customers will be undefined
  • /customers/123-456 will be 123-456
  • /customers/new will be undefined
  • /customers/123-456/users/xyz-abc/addresses/new will be undefined
  • /customers/123-456/users/xyz-abc/addresses/567-789 will be 567-789

# isEntityActive

Is the given entity the same as the activeEntity from useActiveEntity

# isEntityVisible

If the isEntityActive the entity is visible.