Skip to main content

useEntities

A hook that provides an entity and a flag indicating if the entity is pending loading.

Parameters

entityProvider

EntityProvider

The entity provider.

watchedComponents

keyof ComponentsRecord[] | 'any'

The components to watch.

Returns

entities

Entity[]

The entities.

isPending

boolean

Whether the entity is pending loading.

Examples

Loading samples...