Skip to content

Conversation

Yovach
Copy link

@Yovach Yovach commented Sep 4, 2025

When destroy() is called, Pixi.js sets renderer to null (see the source at https://github.com/pixijs/pixijs/blob/f60121308acbba32f81333a7918c3a4998172885/src/app/Application.ts#L416).

Because React.StrictMode may invoke the "unmount" helper twice during development, this can results in a crash.

@Yovach Yovach marked this pull request as draft September 5, 2025 15:56
@Yovach
Copy link
Author

Yovach commented Sep 5, 2025

I attempted to call destroy(true, true), but that caused a crash. This pull request should resolve the problem: pixijs/pixijs#11659

Calling destroy() with no arguments triggers glitches beginning on the third refresh.

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

Successfully merging this pull request may close these issues.

1 participant