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

Destroy application on unmount #542

Merged

Conversation

trezy
Copy link
Collaborator

@trezy trezy commented Sep 3, 2024

Description of change

<Application> will now be destroyed when unmounted.

Pre-Merge Checklist
  • Tests and/or benchmarks are included
  • Documentation is changed or added
  • Lint process passed (npm run lint)
  • Tests passed (npm run test)

@trezy trezy added bug Something isn't working v8 Issues related to Pixi React v8 labels Sep 3, 2024
@trezy trezy self-assigned this Sep 3, 2024
@trezy trezy changed the base branch from main to beta September 3, 2024 12:38
@trezy trezy changed the title 521 bug v8 memoized component renders after being unmounted Destroy application on unmount Sep 3, 2024
Copy link

codesandbox-ci bot commented Sep 3, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f3cc9e5:

Sandbox Source
pixi.js-sandbox Configuration

Copy link
Collaborator

@lunarraid lunarraid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only thing I'm really uncertain of here is why the entire queue is called when an init is requested for a single Application. If that is necessary, though, the rest seems fine.

src/helpers/unmountApplication.ts Outdated Show resolved Hide resolved
src/helpers/unmountApplication.ts Outdated Show resolved Hide resolved
src/helpers/unmountApplications.ts Outdated Show resolved Hide resolved
src/components/Application.ts Show resolved Hide resolved
vitest.setup.ts Show resolved Hide resolved
src/components/Application.ts Show resolved Hide resolved
@ricsam
Copy link

ricsam commented Dec 4, 2024

I've tested this PR in a personal project and it handles the issues I was facing, it works well for me!

@rvion
Copy link

rvion commented Dec 10, 2024

Really looking forward v8 beeing a tad more stable; i'm also suffering from this; any way to help move this branch/the project forward ? happy to help

@trezy
Copy link
Collaborator Author

trezy commented Dec 10, 2024

@rvion this comment will provide more context.

@trezy trezy merged commit 3a19cbc into beta Dec 26, 2024
5 checks passed
@trezy trezy deleted the 521-bug-v8-memoized-component-renders-after-being-unmounted branch December 26, 2024 05:11
Copy link

🎉 This PR is included in version 8.0.0-beta.15 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released on @beta v8 Issues related to Pixi React v8
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants