rbxts-flamework / core

Flamework is an extensible game framework. It requires typescript and offers many useful features.
MIT License
101 stars 8 forks source link

Add a cleanup function for components, for when they are removed #103

Closed CapedBojji closed 6 months ago

CapedBojji commented 6 months ago

I know i can set it up by listening to when a component is removed by it will be nice for cleaning up connections and events

Fireboltofdeath commented 6 months ago

https://flamework.fireboltofdeath.dev/docs/migration#component-maids-were-removed

This is already possible by overriding the destroy method