-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
AppConsumer does not work if Pixi application not has been created using Stage #54
Comments
Hi @bichotll, If you're using a custom renderer (= without the <AppProvider value={app}>
...
</AppProvider> You can see that the Here's an updated version of your codepen: https://codepen.io/inlet/pen/0d6625478cc5abb53f783e571e91b612/ |
Is this not working? Seems to work here 😉 |
Maybe we should update the docs with an example of |
I just wanted to show the original example 👍 It works.
That could be useful in case someone comes across this issue. |
👍 thanks! I'll update the docs |
Description
The AppConsumer returns { app: undefined } when the app is not created using component.
Steps to reproduce
See example one: https://codepen.io/anon/pen/YJYxRZ?editors=0010 (Notice console.log on line 19)
See example two (original example): https://codepen.io/inlet/pen/aYLvrZ?editors=0010
Additional info
@inlet/react-pixi
version:React
version:ReactDOM
version:PIXI
version:^ All from https://codepen.io/inlet/pen/cb74b4dcdae3c8c621a29c43f5967dd9 dependencies
The text was updated successfully, but these errors were encountered: