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

Fix: Update render to execute injectIntoDevTools once #308

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Warchino
Copy link

@Warchino Warchino commented Jan 25, 2024

This PR solves the error:
image

This is reproducible when we try to unmount a Scene to generate a new component changing the key react prop:
https://codesandbox.io/p/sandbox/codesandbox-react-tsx-forked-chj46s

Please open the codesanbox repro example in a separate tab, because only happens when your browser has React DevTools extension.

This fix is based on this issue:
pixijs/pixi-react#251

@Warchino
Copy link
Author

Warchino commented Jan 25, 2024

Hey @brianzinn please take a look to this PR.

@brianzinn
Copy link
Owner

First of all thank-you for your contribution and sorry for leaving this so long. I am trying to clean up the issues and merge all the PRs. if you are still available and willing... The code-sandbox is really helpful, but I am unable to reproduce on FF or Edge with React Dev Tools. I am clicking the "GenerateKey" button and it resets the scene correctly with no errors and the Components tab seems to be working. I don't know if Dev Tools has been updated in the interim to allow being called multiple times or if I am doing something incorrectly.

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.

None yet

2 participants