We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When you create a context outside of the Pixi Stage, its value does not update inside the Pixi Stage.
PixiComponent should render Context value: 15.
PixiComponent
Context value: 15
PixiComponent renders Context value: undefined.
Context value: undefined
Compare PixiComponent with PixiComponentWithMiddleContext.
PixiComponentWithMiddleContext
PixiComponentWithMiddleContext does render the context value because it has a middleware MyPixiContext inside the stage.
MyPixiContext
Without this, any component inside Stage can't access MyContext latest value and only receives the value used when it was instantiated.
Stage
MyContext
The text was updated successfully, but these errors were encountered:
Related to #77
Sorry, something went wrong.
No branches or pull requests
Description
When you create a context outside of the Pixi Stage, its value does not update inside the Pixi Stage.
Steps to reproduce
Expected
PixiComponent
should renderContext value: 15
.Currently
PixiComponent
rendersContext value: undefined
.More info
Compare
PixiComponent
withPixiComponentWithMiddleContext
.PixiComponentWithMiddleContext
does render the context value because it has a middlewareMyPixiContext
inside the stage.Without this, any component inside
Stage
can't accessMyContext
latest value and only receives the value used when it was instantiated.The text was updated successfully, but these errors were encountered: