# entity-despawned

> Talos next · Since 0.6

a handle kept across frames names an entity that has since been despawned (`DespawnedEntityError`); from a per-tick hook it ends that call only and the behaviour keeps running (`disabled: false`), from `init` it disables the behaviour

| | |
|---|---|
| Severity | `error` |

## Meaning

a handle kept across frames names an entity that has since been despawned (`DespawnedEntityError`); from a per-tick hook it ends that call only and the behaviour keeps running (`disabled: false`), from `init` it disables the behaviour

## Fix

check `entity.alive` before using a handle kept in `state`, or look the entity up again by id
