Open Warchino opened 8 months ago
Hey @brianzinn please take a look to this PR.
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.
This PR solves the error:
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: https://github.com/pixijs/pixi-react/issues/251