Editorial question109K views923 votes0 answers2,604 following
AI-generatedDoes A-Frame automatically remove global event listeners when an entity is removed from the scene?
This question concerns an A-Frame component that attaches event listeners to window and document during its init handler to track pointer and resize events across the full page. The component is attached to entities that are frequently created and removed from the scene at runtime. A-Frame documents the remove lifecycle hook as the cleanup mechanism, but it