Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

customWillDetach never gets called #86

Open
J00nz opened this issue Jun 5, 2017 · 0 comments
Open

customWillDetach never gets called #86

J00nz opened this issue Jun 5, 2017 · 0 comments
Assignees

Comments

@J00nz
Copy link
Contributor

J00nz commented Jun 5, 2017

Even if you set the "customWillDetach" of your CustomPIXIComponent, it never gets called.

Maybe I'm doing something wrong, but setting it like this:

CustomPIXIComponent({
  customWillDetach(displayObject) {
    console.log("Component is about to be detached!")
  }
)

and removing the component from its parent, doesn't seem to trigger the event.

From what I understand, it is supposed to be used to handle cleanup of events etc, which would be pretty handy.

@Izzimach Izzimach self-assigned this Jul 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants