RafaelBarbosatec / bonfire

(RPG maker) Create RPG-style or similar games more simply with Flame.
https://bonfire-engine.github.io
MIT License
1.18k stars 177 forks source link

Add guard to prevent `onDestroy` being called after component has been removed #528

Closed tkshnwesper closed 3 weeks ago

tkshnwesper commented 3 weeks ago

Description

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

Breaking Change

Does your PR require Flame users to manually update their apps to accommodate your change?

RafaelBarbosatec commented 3 weeks ago

LGTM! Thanks so much for contributing!